Skip to content

reportChat

Sahri Riza Umami edited this page Jun 24, 2018 · 5 revisions

Reports a chat to the Telegram moderators.
Supported only for supergroups, channels, or private chats with bots, since other chats can't be checked by moderators.

reportChat(chat_id, reason, text, message_ids, callback, data)
Field Type Description
chat_id int53 Chat identifier.
reason string The reason for reporting the chat; Spam, Violence, Pornography and Custom.
text string Report text.
message_ids vector Identifiers of reported messages, if any.

Example

  • Report message id 212 in chat 1234567890 for spam.

    reportChat(1234567890, 'Spam', 'Spamming', '{[0]=212}')

    Response:

    {
      ["@type"] = "ok"
    }

Frequently Asked Questions
The Functions

Clone this wiki locally