refundStarPayment
Refund a successful Telegram Stars payment for a user using the original payment charge ID. Returns success confirmation.
Instructions
Refunds a successful payment in Telegram Stars. 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": {
"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 |