telegram api method · layer 229 · #25ae8f4a
payments.refundStarsCharge
Refund a Telegram Stars transaction, see here » for more info.
definition
payments.refundStarsCharge#25ae8f4a user_id:InputUser charge_id:string = Updates;
parameters
| name | type | description |
|---|---|---|
user_id | InputUser | User to refund. |
charge_id | string | Transaction ID. |
returns
errors (6)
| code | error | description |
|---|---|---|
| 400 | BUSINESS_CONNECTION_NOT_ALLOWED | This method was invoked over a business connection using invokeWithBusinessConnection, but either (1) we're a user, and users cannot invoke methods over a business connection; (2) we're a bot, but business mode was disabled in @botfather or (3); we're a bot, but this method cannot be invoked over a business connection. |
| 400 | CHARGE_ALREADY_REFUNDED | The transaction was already refunded. |
| 400 | CHARGE_ID_EMPTY | The specified charge_id is empty. |
| 400 | USER_BOT_REQUIRED | This method can only be called by a bot. |
| 400 | USER_ID_INVALID | The provided user ID is invalid. |
| 401 | AUTH_KEY_UNREGISTERED | The specified authorization key is not registered in the system (for example, a PFS temporary key has expired). |
history
present in layers 181–229
| id | layers |
|---|---|
| #25ae8f4a | 181–229 |