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 undefinedWhether the shipping address was requested
test
: boolean or undefinedWhether this is an example invoice
title
: stringProduct name, 1-32 characters
description
: stringProduct description, 1-255 characters
photo
: Raw.TypeWebDocument 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.
receiptMsgId
: number or undefinedMessage 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
: stringThree-letter iso 4217 currency code, or xtr for telegram stars.
totalAmount
: bigintTotal 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
: stringUnique bot deep-linking parameter that can be used to generate this invoice
extendedMedia
: Raw.TypeMessageExtendedMedia or undefinedExtended media