Layer 220
MessagesReportSpam
Report a new incoming chat for spam, if the peer settings of the chat allow us to do that
method
Users
messages.reportSpam#cf1592db peer:InputPeer = Bool;
Parameters
| Name | Type | Description |
|---|---|---|
| Peer | InputPeer | Peer to report |
Returns
BoolPossible Errors
| Code | Type | Description |
|---|---|---|
| 400 | CHANNEL_PRIVATE | You haven't joined this channel/supergroup. |
| 400 | MSG_ID_INVALID | Invalid message ID provided. |
| 400 | PEER_ID_INVALID | The provided peer id is invalid. |
Gogram Example
// MessagesReportSpam - positional arguments result, err := client.MessagesReportSpam(&tg.InputPeerUser{UserID: int64(123456789)}) if err != nil { // handle error } // result is *tg.Bool