Layer 224
MessagesReport
Report a message in a chat for violation of telegram's Terms of Service
method
Users
messages.report#fc78af9b peer:InputPeer id:Vector<int> option:bytes message:string = ReportResult;
Parameters
| Name | Type | Description |
|---|---|---|
| Peer | InputPeer | Peer |
| Id | Vector<int> | IDs of messages to report |
| Option | bytes | Menu option, intially empty |
| Message | string | Comment for report moderation |
Returns
ReportResultGogram Example
// MessagesReport - positional arguments result, err := client.MessagesReport(&tg.InputPeerUser{UserID: int64(777000)}, []int{}, []byte{0x01, 0x02, 0x03}, "Hello, World!") if err != nil { // handle error } // result is *tg.ReportResult
Possible Errors
| Code | Type | Description |
|---|---|---|
| 400 | CHANNEL_INVALID | The provided channel is invalid. |
| 400 | CHANNEL_PRIVATE | You haven't joined this channel/supergroup. |
| 400 | OPTION_INVALID | Invalid option selected. |
| 400 | PEER_ID_INVALID | The provided peer id is invalid. |