messageActionPaymentRefunded
Describes a payment refund (service message received by both users and bots).
type tg.MessageActionPaymentRefunded struct { /* ... */ }
Implements MessageAction.
Fields
| Name | Type | Required | Description |
|---|---|---|---|
Peer | PeerClass | yes | Identifier of the peer that returned the funds. |
Currency | string | yes | Currency, XTR for Telegram Stars. |
TotalAmount | int64 | yes | 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 | []byte | — | Bot specified invoice payload (only received by bots). |
Charge | PaymentCharge | yes | Provider payment identifier |
References
- Official documentation
- Generated Go reference
- TL definition:
messageActionPaymentRefunded#41b3e202