Skip to content

deleteSupergroup

Sahri Riza Umami edited this page Jun 23, 2018 · 1 revision

Deletes a supergroup or channel along with all messages in the corresponding chat.
This will release the supergroup or channel username and remove all members; requires creator privileges in the supergroup or channel.
Chats with more than 1000 members can't be deleted using this method.

deleteSupergroup(supergroup_id, callback, data)
Field Type Description
supergroup_id int32 Identifier of the supergroup or channel.

Example

  • Deletes supergroup 1234567890.

    deleteSupergroup(1234567890)

    Response:

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

Frequently Asked Questions
The Functions

Clone this wiki locally