Telegram Bot icon

Telegram Bot

Interact with the Telegram Bot API – send messages, manage chats, handle payments, and more

Actions101

Chat → Create Chat Invite Link

AI-generated

Summary

Create a chat invite link

Inputs

  • chat_id (required) — Unique identifier for the target chat or username (@channelusername)
  • name — Invite link name
  • expire_date — Unix timestamp when the link will expire
  • member_limit — Max number of users (1-99999)
  • creates_join_request — Whether users need to be approved to join

Output shape

an object containing the invite link details (e.g., invite_link, expire_date, member_limit, creates_join_request)

Fields are included only if provided; missing fields are omitted.

Examples

Example 1: Create an invite link named 'Community' for a group with a 100‑user limit

chat_id: 'mygroup', inviteLinkAdditionalFields: {name: 'Community', member_limit: 100}

Example 2: Create a permanent invite link for a channel with no name or limit

chat_id: '@mychannel', inviteLinkAdditionalFields: {name: '', expire_date: 0, member_limit: 0, creates_join_request: false}

Example 3: Create an invite link that expires in one hour and requires approval

chat_id: '123456789', inviteLinkAdditionalFields: {name: 'TempGroup', expire_date: 1735689600, creates_join_request: true}

Links

Discussion