createChatSubscriptionInviteLink
Creates a paid subscription invite link for a Telegram channel chat, letting users join by paying Telegram Stars. Requires the bot to have can_invite_users admin rights.
Instructions
Use this method to create a subscription invite link for a channel chat. The bot must have the can_invite_users administrator rights. The link can be edited using the method editChatSubscriptionInviteLink or revoked using the method revokeChatInviteLink. Returns the new invite link as a ChatInviteLink object.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"chat_id": "<chat_id>",
"subscription_period": "<subscription_period>",
"subscription_price": "<subscription_price>"
},
"name": "createChatSubscriptionInviteLink"
}
}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 `@username` | |
| subscription_price | Yes | The amount of Telegram Stars a user must pay initially and after each subsequent subscription period to be a member of the chat; 1-2500 | |
| 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). |