giftPremiumSubscription
Purchase and deliver a Telegram Premium subscription to a target user using Telegram Stars. Specify user ID, duration (3/6/12 months), and star amount to complete the gift.
Instructions
Gifts a Telegram Premium subscription to the given user. Returns True on success.
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 that will receive the gift. | |
| star_count | Yes | Number of Telegram Stars to pay for the subscription; must be 1000 for 3 months, 1500 for 6 months, or 2500 for 12 months. | |
| month_count | Yes | Number of months the Telegram Premium subscription will be active; must be 3, 6, or 12. | |
| text_entities | No | List of special entities that appear in the gift text. Can be specified instead of text_parse_mode. | |
| text_parse_mode | No | Mode for parsing entities in the text. |