Raw.MessageMediaInvoice

Raw.MessageMediaInvoice

Invoice

messageMediaInvoice#f6a548d3 flags:# shipping_address_requested:flags.1?true test:flags.3?true title:string description:string photo:flags.0?WebDocument receipt_msg_id:flags.2?int currency:string total_amount:long start_param:string extended_media:flags.4?MessageExtendedMedia = MessageMedia;
export namespace Raw {
  export class MessageMediaInvoice {
    constructor(params: {
      shippingAddressRequested?: boolean;
      test?: boolean;
      title: string;
      description: string;
      photo?: Raw.TypeWebDocument;
      receiptMsgId?: number;
      currency: string;
      totalAmount: bigint;
      startParam: string;
      extendedMedia?: Raw.TypeMessageExtendedMedia;
    }) {}
  }
}
🚫

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

Layer: 185
Constructor ID: 0xf6a548d3

Property

  • shippingAddressRequested : boolean or undefined

    Whether the shipping address was requested

  • test : boolean or undefined

    Whether this is an example invoice

  • title : string

    Product name, 1-32 characters

  • description : string

    Product description, 1-255 characters

  • photo : Raw.TypeWebDocument or undefined

    Url of the product photo for the invoice. can be a photo of the goods or a marketing image for a service. people like it better when they see what they are paying for.

  • receiptMsgId : number or undefined

    Message id of receipt: if set, clients should change the text of the first keyboardbuttonbuy button always attached to the message to a localized version of the word receipt

  • currency : string

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

  • totalAmount : bigint

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

  • startParam : string

    Unique bot deep-linking parameter that can be used to generate this invoice

  • extendedMedia : Raw.TypeMessageExtendedMedia or undefined

    Extended media