Raw.MessageActionPaymentSent

Raw.MessageActionPaymentSent

A payment was sent

messageActionPaymentSent#96163f56 flags:# recurring_init:flags.2?true recurring_used:flags.3?true currency:string total_amount:long invoice_slug:flags.0?string = MessageAction;
export namespace Raw {
  export class MessageActionPaymentSent {
    constructor(params: {
      recurringInit?: boolean;
      recurringUsed?: boolean;
      currency: string;
      totalAmount: bigint;
      invoiceSlug?: string;
    }) {}
  }
}
🚫

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

Layer: 185
Constructor ID: 0x96163f56

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).

  • invoiceSlug : string or undefined

    An invoice slug taken from an invoice deep link or from the premiumInvoiceSlug app config parameter