Skip to content

getSupergroup

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

Returns information about a supergroup or channel by its identifier.
This is an offline request if the current user is not a bot.

getSupergroup(supergroup_id)
Field Type Description
supergroup_id int32 Supergroup or channel identifier

Example

  • Get information about supergroup or channel 1234567890.

    getSupergroup(1234567890)

    Response:

    {
      ["@type"] = "supergroup",
      anyone_can_invite = true,
      date = 1518001871,
      id = 1234567890,
      is_channel = false,
      is_verified = false,
      member_count = 0,
      restriction_reason = "",
      sign_messages = true,
      status = {
        ["@type"] = "chatMemberStatusCreator",
        is_member = true
      },
      username = ""
    }

Frequently Asked Questions
The Functions

Clone this wiki locally