Skip to content

generateChatInviteLink

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

Generates a new invite link for a chat; the previously generated link is revoked.
Available for basic groups, supergroups, and channels.
In basic groups this can be called only by the group's creator; in supergroups and channels this requires appropriate administrator rights.

generateChatInviteLink(chat_id, callback, data)
Field Type Description
chat_id int53 Chat identifier.

Example

  • Generates a new invite link for chat 1234567890.

    generateChatInviteLink(1234567890)

    Response:

    {
      ["@type"] = "chatInviteLink",
      invite_link = "https://t.me/joinchat/ThisisFakEiNV_Itel1nK"
    }

Frequently Asked Questions
The Functions

Clone this wiki locally