convert_gift_to_stars
Convert a Telegram gift into Stars by providing your business connection ID and owned gift ID. Use this tool to monetize received gifts within your bot's operations.
Instructions
Convert a gift to Telegram Stars (v9.0).
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": {
"business_connection_id": "<business_connection_id>",
"owned_gift_id": "<owned_gift_id>"
},
"name": "convert_gift_to_stars"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| owned_gift_id | Yes | ||
| business_connection_id | Yes |