createChatSubscriptionInviteLink
Create a paid Telegram channel invite link that grants membership after users pay Telegram Stars, with a recurring 30-day subscription period.
Instructions
Create a subscription invite link for a channel chat. The bot must have can_invite_users administrator rights. The link can be edited using editChatSubscriptionInviteLink or revoked using 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 channel chat or username of the target channel (in the format @channelusername) | |
| subscription_price | Yes | The number of Telegram Stars a user must pay initially and after each subsequent subscription period to be a member of the chat; 1-10000 | |
| subscription_period | Yes | The number of seconds the subscription will be active for before the next payment. Currently, it must always be 2592000 (30 days). |