Skip to content

getChannel

Sahri Riza Umami edited this page Jun 15, 2017 · 4 revisions

Returns information about a channel by its identifier, offline request if current user is not a bot.

getChannel(channel_id)
Option Description
channel_id Channel identifier.

Example

  • Get information about -1001006631380 channel.

    getChannel(-1001006631380)

    Returns:

    {
      ID = "Channel",
      anyone_can_invite_ = false,
      date_ = 1497538069,
      id_ = 1006631380,
      is_supergroup_ = false,
      is_verified_ = false,
      restriction_reason_ = false,
      sign_messages_ = false,
      status_ = {
        ID = "ChatMemberStatusMember"
      },
      username_ = "pegelinux"
    }

Test script
Frequently Asked Questions
The Functions

Clone this wiki locally