Skip to content

checkChatInviteLink

Sahri Riza Umami edited this page Jun 10, 2017 · 5 revisions

Checks chat invite link for validness and returns information about the corresponding chat.

checkChatInviteLink(invite_link)

NOTE: Up until telegram-cli-1222 will thrown an error for the new https://t.me link.

Option Description
invite_link Invite link to check. Should begin with "https://telegram.me/joinchat/".

Example

  • Check if https://telegram.me/joinchat/AAZTvzwRgCYrDGW9MXBhfg is a valid invite link.

    checkChatInviteLink('https://telegram.me/joinchat/AAZTvzwRgCYrDGW9MXBhfg')

    Response:

    {
      ID = "ChatInviteLinkInfo",
      chat_id_ = 0,
      is_channel_ = true,
      is_group_ = false,
      is_public_channel_ = false,
      is_supergroup_channel_ = true,
      member_count_ = 109,
      members_ = {
        {
          ID = "User",
          first_name_ = "Mentari",
          foreign_link_ = {
            ID = "LinkStateNone"
          },
          have_access_ = false,
          id_ = REDACTED,
          is_verified_ = false,
          last_name_ = false,
          my_link_ = {
            ID = "LinkStateKnowsPhoneNumber"
          },
          phone_number_ = false,
          profile_photo_ = {
            ID = "ProfilePhoto",
            big_ = {
              ID = "File",
              id_ = 1180,
              path_ = false,
              persistent_id_ = "AQADBQADzacxG1ACfAEACLIXHSwABDkQ5rMLq76zojAAAgI",
              size_ = 0
            },
            id_ = "106963034226927565",
            small_ = {
              ID = "File",
              id_ = 1179,
              path_ = false,
              persistent_id_ = "AQADBQADzacxG1ACfAEACLIXHSwABGJb2dSNxephoDAAAgI",
              size_ = 0
            }
          },
          restriction_reason_ = false,
          status_ = {
            ID = "UserStatusEmpty"
          },
          type_ = {
            ID = "UserTypeGeneral"
          },
          username_ = false
        },
        { ... etc until 10th members, REDACTED ... }
      },
      photo_ = {
        ID = "ChatPhoto",
        big_ = {
          ID = "File",
          id_ = 1176,
          path_ = false,
          persistent_id_ = "AQADAgATkImEKgAEpUbVl01ZO1BhaAEAAQI",
          size_ = 0
        },
        small_ = {
          ID = "File",
          id_ = 1175,
          path_ = false,
          persistent_id_ = "AQADAgATkImEKgAE5HUutdmNZb1faAEAAQI",
          size_ = 0
        }
      },
      title_ = "chi squared"
    }

Test script
Frequently Asked Questions
The Functions

Clone this wiki locally