Skip to content

exportChatInviteLink

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

Generates new chat invite link, previously generated link is revoked.

exportChatInviteLink(chat_id)

Available for group and channel chats.
Only creator of the chat can export chat invite link.
The newly generated link will replace (revoke) the current invite link.

Option Description
chat_id Chat identifier.

Example

  • Generates new chat invite link for 1234567890.

    exportChatInviteLink(1234567890)

    Response:

    {
      ID = "ChatInviteLink",
      invite_link_ = "https://t.me/joinchat/AAAAAEPfvW51xat27vi2-A"
    }

Test script
Frequently Asked Questions
The Functions

Clone this wiki locally