Raw.MessageActionPaymentSentMe

Raw.MessageActionPaymentSentMe

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

messageActionPaymentSentMe#ffa00ccc 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 subscription_until_date:flags.4?int = 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;
      subscriptionUntilDate?: number;
    }) {}
  }
}
🚫

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

Layer: 198
Constructor ID: 0xffa00ccc

Property

  • recurringInit : boolean or undefined

    Whether this is the first payment of a recurring payment we just subscribed to

  • recurringUsed : boolean or undefined

    Whether this payment is part of a recurring payment

  • currency : string

    Three-letter iso 4217 currency code, or xtr for telegram stars.

  • totalAmount : bigint

    Price 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 : Buffer

    Bot specified invoice payload

  • info : Raw.TypePaymentRequestedInfo or undefined

    Order info provided by the user

  • shippingOptionId : string or undefined

    Identifier of the shipping option chosen by the user

  • charge : Raw.TypePaymentCharge

    Provider payment identifier

  • subscriptionUntilDate : number or undefined

    Expiration date of the telegram star subscription.