Raw.MessageActionPaymentSentMe
A user just sent a payment to me (a bot)
messageActionPaymentSentMe#8f31b327 flags:# recurring_init:flags.2?true recurring_used:flags.3?true currency:string total_amount:long payload:bytes info:flags.0?PaymentRequestedInfo shipping_option_id:flags.1?string charge:PaymentCharge = MessageAction;
export namespace Raw {
export class MessageActionPaymentSentMe {
constructor(params: {
recurringInit?: boolean;
recurringUsed?: boolean;
currency: string;
totalAmount: bigint;
payload: Buffer;
info?: Raw.TypePaymentRequestedInfo;
shippingOptionId?: string;
charge: Raw.TypePaymentCharge;
}) {}
}
}
🚫
This is a types constructor, you can’t use it as method when call invoke.
Layer: 185
Constructor ID: 0x8f31b327
Property
recurringInit
: boolean or undefinedWhether this is the first payment of a recurring payment we just subscribed to
recurringUsed
: boolean or undefinedWhether this payment is part of a recurring payment
currency
: stringThree-letter iso 4217 currency code, or xtr for telegram stars.
totalAmount
: bigintPrice 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
: BufferBot specified invoice payload
info
: Raw.TypePaymentRequestedInfo or undefinedOrder info provided by the user
shippingOptionId
: string or undefinedIdentifier of the shipping option chosen by the user
charge
: Raw.TypePaymentChargeProvider payment identifier