Raw.MessageActionPaymentRefunded

Raw.MessageActionPaymentRefunded

Describes a payment refund (service message received by both users and bots).

messageActionPaymentRefunded#41b3e202 flags:# peer:Peer currency:string total_amount:long payload:flags.0?bytes charge:PaymentCharge = MessageAction;
export namespace Raw {
  export class MessageActionPaymentRefunded {
    constructor(params: {
      peer: Raw.TypePeer;
      currency: string;
      totalAmount: bigint;
      payload?: Buffer;
      charge: Raw.TypePaymentCharge;
    }) {}
  }
}
🚫

This is a types constructor, you can’t use it as method when call invoke.

Layer: 198
Constructor ID: 0x41b3e202

Property

  • peer : Raw.TypePeer

    Identifier of the peer that returned the funds.

  • currency : string

    Currency, xtr for telegram stars.

  • totalAmount : bigint

    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 : Buffer or undefined

    Bot specified invoice payload (only received by bots).

  • charge : Raw.TypePaymentCharge

    Provider payment identifier