messages.ReportSpam

class pyrogram.raw.functions.messages.ReportSpam

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

Details:
  • Layer: 223

  • ID: CF1592DB

Parameters:

peer (InputPeer) – Peer to report

Returns:

bool

TL Schema

messages.reportSpam#cf1592db
peer:InputPeer

= Bool

Parameter Tree

ReportSpam
└── peerInputPeer
├── InputPeerEmpty
├── InputPeerSelf
├── InputPeerChat
│ └── chat_idlong
├── InputPeerUser
│ ├── user_idlong
│ └── access_hashlong
│ ├── channel_idlong
│ └── access_hashlong
│ ├── peerInputPeer
│ │ ├── InputPeerEmpty
│ │ ├── InputPeerSelf
│ │ ├── InputPeerChat
│ │ ├── InputPeerUser
│ │ ├── InputPeerChannel
│ │ ├── InputPeerUserFromMessage
│ │ └── InputPeerChannelFromMessage
│ ├── msg_idint
│ └── user_idlong
├── peerInputPeer
│ ├── InputPeerEmpty
│ ├── InputPeerSelf
│ ├── InputPeerChat
│ ├── InputPeerUser
│ ├── InputPeerChannel
├── msg_idint
└── channel_idlong

Example

await app.invoke(
    ReportSpam(
        peer=await app.resolve_peer(chat_id),
    )
)