createChatInviteLink
Create an additional invite link for a chat, specifying name, expiration time, member limit, or join request approval. Requires bot admin with can_invite_users rights.
Instructions
Create an additional invite link for a chat. The bot must be an administrator with can_invite_users rights. The link can be revoked using the method revokeChatInviteLink. Returns the new invite link as ChatInviteLink object.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | No | Invite link name; 0-32 characters | |
| chat_id | Yes | Unique identifier for the target chat or username of the target channel (in the format @channelusername) | |
| expire_date | No | Point in time (Unix timestamp) when the link will expire | |
| member_limit | No | Maximum number of users that can be members of the chat simultaneously after joining the chat via this invite link; 1-99999 | |
| creates_join_request | No | True if users joining the chat via the link need to be approved by chat administrators. If True, member_limit can't be specified |