account.ReportPeer
- class pyrogram.raw.functions.account.ReportPeer
Report a peer for violation of telegram’s Terms of Service
- Details:
Layer:
223ID:
C5BA3D86
- Parameters:
peer (
InputPeer) – The peer to reportreason (
ReportReason) – The reason why this peer is being reportedmessage (
str) – Comment for report moderation
- Returns:
bool
TL Schema
account.reportPeer#c5ba3d86
peer:InputPeer
reason:ReportReason
message:string
= Bool
Parameter Tree
ReportPeer
├── peer →
InputPeer│ ├──
InputPeerEmpty│ ├──
InputPeerSelf│ ├──
InputPeerChat│ │ └── chat_id →
long│ ├──
InputPeerUser│ │ ├── user_id →
long│ │ └── access_hash →
long│ ├──
InputPeerChannel│ │ ├── channel_id →
long│ │ └── access_hash →
long│ ├──
InputPeerUserFromMessage│ │ ├── peer →
InputPeer│ │ │ ├──
InputPeerEmpty│ │ │ ├──
InputPeerSelf│ │ │ ├──
InputPeerChat│ │ │ ├──
InputPeerUser│ │ │ ├──
InputPeerChannel│ │ │ ├──
InputPeerUserFromMessage│ │ │ └──
InputPeerChannelFromMessage│ │ ├── msg_id →
int│ │ └── user_id →
long│ ├── peer →
InputPeer│ │ ├──
InputPeerEmpty│ │ ├──
InputPeerSelf│ │ ├──
InputPeerChat│ │ ├──
InputPeerUser│ │ ├──
InputPeerChannel│ │ ├──
InputPeerUserFromMessage│ │ └──
InputPeerChannelFromMessage│ ├── msg_id →
int│ └── channel_id →
long├── reason →
ReportReason│ ├──
InputReportReasonSpam│ ├──
InputReportReasonOther│ ├──
InputReportReasonFake└── message →
stringExample
await app.invoke(
ReportPeer(
peer=await app.resolve_peer(chat_id),
reason=InputReportReasonSpam(),
message="Hello",
)
)