Refund a Telegram Stars transaction, see here » for more info.
Method schema is available as of layer 181. Switch »
Name | Type | Description |
---|---|---|
user_id | InputUser | User to refund. |
charge_id | string | Transaction ID. |
Code | Type | Description |
---|---|---|
400 | CHARGE_ALREADY_REFUNDED | The transaction was already refunded. |
400 | USER_BOT_REQUIRED | This method can only be called by a bot. |
400 | USER_ID_INVALID | The provided user ID is invalid. |
Telegram Stars are virtual items that allow users to purchase digital goods and services from bots and mini apps inside the Telegram ecosystem, send gifts to content creators on the Telegram platform, and more.
You can accept payments from Telegram users via Telegram Bots.