Skip to main content

messageActionPaymentSentMe

A user just sent a payment to me (a bot)

type tg.MessageActionPaymentSentMe struct { /* ... */ }

Implements MessageAction.

Fields

NameTypeRequiredDescription
RecurringInitboolWhether this is the first payment of a recurring payment we just subscribed to
RecurringUsedboolWhether this payment is part of a recurring payment
CurrencystringyesThree-letter ISO 4217 currency code, or XTR for Telegram Stars.
TotalAmountint64yesPrice of the product 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[]byteyesBot specified invoice payload
InfoPaymentRequestedInfoOrder info provided by the user
ShippingOptionIDstringIdentifier of the shipping option chosen by the user
ChargePaymentChargeyesProvider payment identifier
SubscriptionUntilDateintExpiration date of the Telegram Star subscription ».

References