Actions101
- Bot Actions
- Chat Actions
- Get Chat
- Get Chat Administrators
- Get Chat Member Count
- Get Chat Member
- Ban Chat Member
- Unban Chat Member
- Restrict Chat Member
- Promote Chat Member
- Set Chat Administrator Custom Title
- Set Chat Permissions
- Export Chat Invite Link
- Create Chat Invite Link
- Edit Chat Invite Link
- Revoke Chat Invite Link
- Approve Chat Join Request
- Decline Chat Join Request
- Set Chat Photo
- Delete Chat Photo
- Set Chat Title
- Set Chat Description
- Pin Chat Message
- Unpin Chat Message
- Unpin All Chat Messages
- Leave Chat
- Set Chat Menu Button
- Get Chat Menu Button
- Set Chat Sticker Set
- Delete Chat Sticker Set
- File Actions
- Forum Actions
- Game Actions
- Inline Actions
- Message Actions
- Send Message
- Forward Message
- Copy Message
- Send Photo
- Send Audio
- Send Document
- Send Video
- Send Animation
- Send Voice
- Send Video Note
- Send Media Group
- Send Location
- Send Venue
- Send Contact
- Send Poll
- Send Dice
- Send Chat Action
- Edit Message Text
- Edit Message Caption
- Edit Message Media
- Edit Message Reply Markup
- Edit Message Live Location
- Stop Message Live Location
- Stop Poll
- Delete Message
- Delete Messages
- Payment Actions
- Sticker Actions
- Update Actions
- Webhook Actions
Chat → Create Chat Invite Link
AI-generatedSummary
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}