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
: stringProduct name, 1-32 characters
description
: stringProduct description, 1-255 characters
photo
: Raw.TypeInputWebDocument or undefinedUrl 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.TypeInvoiceThe actual invoice
payload
: BufferBot-defined invoice payload, 1-128 bytes. this will not be displayed to the user, use for your internal processes.
provider
: string or undefinedPayments provider token, obtained via botfather
providerData
: Raw.TypeDataJSONJson-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 undefinedUnique 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 undefinedExtended media