channels.reportSpam #

Reports some messages from a user in a supergroup as spam; requires administrator rights in the supergroup

Layer 223

boolFalse#bc799737 = Bool;
boolTrue#997275b5 = Bool;
---functions---
channels.reportSpam#f44a8315 channel:InputChannel participant:InputPeer id:Vector<int> = Bool;

Parameters #

NameTypeDescription
channelInputChannelSupergroup
participantInputPeerParticipant whose messages should be reported
idVector<int>IDs of spam messages

Result #

Bool

Only users can use this method #

Possible errors #

CodeTypeDescription
400CHANNEL_INVALIDThe provided channel is invalid.
400CHAT_ADMIN_REQUIREDYou must be an admin in this chat to do this.
400INPUT_USER_DEACTIVATEDThe specified user was deleted.
400MSG_ID_INVALIDInvalid message ID provided.
400USER_ID_INVALIDThe provided user ID is invalid.