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:
223ID:
CF1592DB
- Parameters:
peer (
InputPeer) – Peer to report- Returns:
bool
TL Schema
messages.reportSpam#cf1592db
peer:InputPeer
= Bool
Parameter Tree
ReportSpam
└── peer →
InputPeer├──
InputPeerEmpty├──
InputPeerSelf├──
InputPeerChat│ └── chat_id →
long├──
InputPeerUser│ ├── user_id →
long│ └── access_hash →
long├──
InputPeerChannel│ ├── channel_id →
long│ └── access_hash →
long│ ├── peer →
InputPeer│ │ ├──
InputPeerEmpty│ │ ├──
InputPeerSelf│ │ ├──
InputPeerChat│ │ ├──
InputPeerUser│ │ ├──
InputPeerChannel│ │ ├──
InputPeerUserFromMessage│ │ └──
InputPeerChannelFromMessage│ ├── msg_id →
int│ └── user_id →
long├── peer →
InputPeer│ ├──
InputPeerEmpty│ ├──
InputPeerSelf│ ├──
InputPeerChat│ ├──
InputPeerUser│ ├──
InputPeerChannel│ ├──
InputPeerUserFromMessage├── msg_id →
int└── channel_id →
longExample
await app.invoke(
ReportSpam(
peer=await app.resolve_peer(chat_id),
)
)