giftPremiumSubscription
Sends a Telegram Premium subscription to a specified user for 3, 6, or 12 months, paid in Telegram Stars, with optional gift text.
Instructions
Gifts a Telegram Premium subscription to the given user. Returns True on success.
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": {
"user_id": "<user_id>",
"month_count": "<month_count>",
"star_count": "<star_count>"
},
"name": "giftPremiumSubscription"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| text | No | Text that will be shown along with the service message about the subscription; 0-128 characters | |
| user_id | Yes | Unique identifier of the target user who will receive a Telegram Premium subscription | |
| star_count | Yes | Number of Telegram Stars to pay for the Telegram Premium subscription; must be 1000 for 3 months, 1500 for 6 months, and 2500 for 12 months | |
| month_count | Yes | Number of months the Telegram Premium subscription will be active for the user; must be one of 3, 6, or 12 | |
| text_entities | No | A list of special entities that appear in the gift text. It can be specified instead of text_parse_mode. Entities other than “bold”, “italic”, “underline”, “strikethrough”, “spoiler”, “custom_emoji”, and “date_time” are ignored. | |
| text_parse_mode | No | Mode for parsing entities in the text. See formatting options for more details. Entities other than “bold”, “italic”, “underline”, “strikethrough”, “spoiler”, “custom_emoji”, and “date_time” are ignored. |