refundStarPayment
Refunds a successful Telegram Stars payment by user ID and payment charge ID, enabling bot developers to reverse star transactions when needed.
Instructions
Refunds a successful payment in Telegram Stars.
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>",
"telegram_payment_charge_id": "<telegram_payment_charge_id>"
},
"name": "refundStarPayment"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| user_id | Yes | Identifier of the user whose payment will be refunded | |
| telegram_payment_charge_id | Yes | Telegram payment identifier |