messages.report #

Report a message in a chat for violation of telegram's Terms of Service

Layer 223

reportResultChooseOption#f0e4e0b6 title:string options:Vector<MessageReportOption> = ReportResult;
reportResultAddComment#6f09ac31 flags:# optional:flags.0?true option:bytes = ReportResult;
reportResultReported#8db33c4b = ReportResult;
---functions---
messages.report#fc78af9b peer:InputPeer id:Vector<int> option:bytes message:string = ReportResult;

Parameters #

NameTypeDescription
peerInputPeerPeer
idVector<int>IDs of messages to report
optionbytesMenu option, intially empty
messagestringComment for report moderation

Result #

ReportResult

Only users can use this method #

Possible errors #

CodeTypeDescription
400CHANNEL_INVALIDThe provided channel is invalid.
400CHANNEL_PRIVATEYou haven't joined this channel/supergroup.
400MESSAGE_REQUIREDA non-empty list of IDs must be passed to id.
400OPTION_INVALIDInvalid option selected.
400PEER_ID_INVALIDThe provided peer id is invalid.