Skip to content

reportSupergroupSpam

Sahri Riza Umami edited this page Jul 2, 2018 · 1 revision

Reports some messages from a user in a supergroup as spam.

reportSupergroupSpam(supergroup_id, user_id, message_ids, callback, data)
Field Type Description
supergroup_id int32 Supergroup identifier.
user_id int32 User identifier.
message_ids vector<int53> Identifiers of messages sent in the supergroup by the user. This list must be non-empty.

Example

  • Reports messages 234, 212 and 666 from user 133780085 in supergroup 1234567890 as spam.

    reportSupergroupSpam(1234567890, 133780085, {[0]=234, 212, 666})

    Response:

Frequently Asked Questions
The Functions

Clone this wiki locally