Layer 220
method Bots
payments.refundStarsCharge#25ae8f4a user_id:InputUser charge_id:string = Updates;

Parameters

Name Type Description
UserId InputUser User to refund.
ChargeId string Transaction ID.

Returns

Updates

Possible Errors

Code Type Description
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.

Gogram Example

// PaymentsRefundStarsCharge - positional arguments
result, err := client.PaymentsRefundStarsCharge(&tg.InputUserSelf{}, "...")
if err != nil {
    // handle error
}
// result is *tg.Updates