sendGift
Send a Telegram gift to a specified user or channel. Provide the gift ID and recipient; optionally add text. The receiver cannot convert the gift to Telegram Stars.
Instructions
Sends a gift to the given user or channel chat. The gift cannot be converted to Telegram Stars by the receiver. Returns True on success.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| text | No | Text that will be shown along with the gift; 0-128 characters. | |
| chat_id | No | Unique identifier for the target chat or username of the channel (format: @channelusername). Required if user_id is not specified. | |
| gift_id | Yes | Identifier of the gift to send. Limited gifts cannot be sent to channel chats. | |
| user_id | No | Unique identifier of the target user who will receive the gift. Required if chat_id is not specified. | |
| text_entities | No | List of special entities that appear in the gift text. Can be specified instead of text_parse_mode. | |
| pay_for_upgrade | No | Pass True to pay for the gift upgrade from the bot's balance. | |
| text_parse_mode | No | Mode for parsing entities in the text. See formatting options for more details. |