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_ = {
        { 10 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