telegram api method · layer 229 · #fc78af9b

messages.report

usable by users

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

definition

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

returns

ReportResult

errors (7)

codeerrordescription
400BUSINESS_CONNECTION_NOT_ALLOWEDThis method was invoked over a business connection using invokeWithBusinessConnection, but either (1) we're a user, and users cannot invoke methods over a business connection; (2) we're a bot, but business mode was disabled in @botfather or (3); we're a bot, but this method cannot be invoked over a business connection.
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.
401AUTH_KEY_UNREGISTEREDThe specified authorization key is not registered in the system (for example, a PFS temporary key has expired).

history

present in layers 2–23, 76–229 · constructor id changed 2×

idlayers
#bd82b6582–23
#bd82b65876–123
#8953ab4e124–188
#fc78af9b189–229