Raw.InputMediaInvoice

Raw.InputMediaInvoice

Generated invoice of a bot payment

inputMediaInvoice#405fef0d flags:# title:string description:string photo:flags.0?InputWebDocument invoice:Invoice payload:bytes provider:flags.3?string provider_data:DataJSON start_param:flags.1?string extended_media:flags.2?InputMedia = InputMedia;
export namespace Raw {
  export class InputMediaInvoice {
    constructor(params: {
      title: string;
      description: string;
      photo?: Raw.TypeInputWebDocument;
      invoice: Raw.TypeInvoice;
      payload: Buffer;
      provider?: string;
      providerData: Raw.TypeDataJSON;
      startParam?: string;
      extendedMedia?: Raw.TypeInputMedia;
    }) {}
  }
}
🚫

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

Layer: 185
Constructor ID: 0x405fef0d

Property

  • title : string

    Product name, 1-32 characters

  • description : string

    Product description, 1-255 characters

  • photo : Raw.TypeInputWebDocument 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.

  • invoice : Raw.TypeInvoice

    The actual invoice

  • payload : Buffer

    Bot-defined invoice payload, 1-128 bytes. this will not be displayed to the user, use for your internal processes.

  • provider : string or undefined

    Payments provider token, obtained via botfather

  • providerData : Raw.TypeDataJSON

    Json-encoded data about the invoice, which will be shared with the payment provider. a detailed description of required fields should be provided by the payment provider.

  • startParam : string or undefined

    Unique bot deep links start parameter. if present, forwarded copies of the sent message will have a url button with a deep link to the bot (instead of a pay button), with the value used as the start parameter. if absent, forwarded copies of the sent message will have a pay button, allowing multiple users to pay directly from the forwarded message, using the same invoice.

  • extendedMedia : Raw.TypeInputMedia or undefined

    Extended media