Layer 220
constructor
messageActionPaymentRefunded#41b3e202 flags:# peer:Peer currency:string total_amount:long payload:flags.0?bytes charge:PaymentCharge = MessageAction;

Parameters

Name Type Description
Flags # Flags, see TL conditional fields
Peer Peer Identifier of the peer that returned the funds.
Currency string Currency, XTR for Telegram Stars.
TotalAmount long Total price in the smallest units of the currency (integer, not float/double). For example, for a price of US$ 1.45 pass amount = 145. See the exp parameter in currencies. json, it shows the number of digits past the decimal point for each currency (2 for the majority of currencies).
Payload flags.0?bytes Bot specified invoice payload (only received by bots).
Charge PaymentCharge Provider payment identifier

Returns

MessageAction

Gogram Example

// Creating MessageActionPaymentRefunded constructor
obj := &tg.MessageActionPaymentRefunded{
    Peer: &tg.Peer{},
    Currency: "...",
    TotalAmount: int64(0),
    Charge: &tg.PaymentCharge{},

    // Optional fields:
    // Payload: []byte{},
}