messages.reportSpam #

Report a new incoming chat for spam, if the peer settings of the chat allow us to do that

Layer 223

boolFalse#bc799737 = Bool;
boolTrue#997275b5 = Bool;
---functions---
messages.reportSpam#cf1592db peer:InputPeer = Bool;

Parameters #

NameTypeDescription
peerInputPeerPeer to report

Result #

Bool

Only users can use this method #

Possible errors #

CodeTypeDescription
400CHANNEL_PRIVATEYou haven't joined this channel/supergroup.
400MSG_ID_INVALIDInvalid message ID provided.
400PEER_ID_INVALIDThe provided peer id is invalid.

peerSettings #

List of actions that are possible when interacting with this user, to be shown as suggested actions in the chat action bar », see here » for more info.