sendGiftToChannel
Sends a gift to a specified channel chat, optionally with accompanying text and a paid upgrade for the receiver. Returns true on success; the recipient cannot convert the gift to Telegram Stars.
Instructions
Sends a gift to the given channel chat. The gift can't be converted to Telegram Stars by the receiver. 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": {
"chat_id": "<chat_id>",
"gift_id": "<gift_id>"
},
"name": "sendGiftToChannel"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| text | No | Text that will be shown along with the gift; 0-128 characters | |
| chat_id | Yes | Unique identifier for the chat or username of the channel (in the format | |
| gift_id | Yes | Identifier of the gift | |
| 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. | |
| pay_for_upgrade | No | Pass True to pay for the gift upgrade from the bot's balance, thereby making the upgrade free for the receiver | |
| 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. |