Skip to content

joinChatByInviteLink

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

Uses an invite link to add the current user to the chat if possible.
The new member will not be added until the chat state has been synchronized with the server.

joinChatByInviteLink(invite_link, callback, data)
Field Type Description
invite_link string Invite link to import; should begin with "https://t.me/joinchat/", "https://telegram.me/joinchat/", or "https://telegram.dog/joinchat/"

Example

  • Join a chat by its invite link.

    joinChatByInviteLink('https://t.me/joinchat/AbC12dEfgh3IJKLMnopQrS')

    Response:

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

Frequently Asked Questions
The Functions

Clone this wiki locally