messages.reportSpam
Report a new incoming chat for spam, if the peer settings of the chat allow us to do that
Report a new incoming chat for spam, if the [peer settings](https://core.telegram.org/constructor/peerSettings.md) of the chat allow us to do that
| Name | Type | Required | Description |
|---|---|---|---|
peer | InputPeer | Yes | Peer to report |
Replies
Bool
MTProto RPC
- 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.