account.reportPeer #

Report a peer for violation of telegram's Terms of Service

Layer 223

boolFalse#bc799737 = Bool;
boolTrue#997275b5 = Bool;
---functions---
account.reportPeer#c5ba3d86 peer:InputPeer reason:ReportReason message:string = Bool;

Parameters #

NameTypeDescription
peerInputPeerThe peer to report
reasonReportReasonThe reason why this peer is being reported
messagestringComment for report moderation

Result #

Bool

Only users can use this method #

Possible errors #

CodeTypeDescription
400CHANNEL_PRIVATEYou haven't joined this channel/supergroup.
400PEER_ID_INVALIDThe provided peer id is invalid.