MessageMediaInvoice
- class pyrogram.raw.types.MessageMediaInvoice
Invoice
Constructor of
MessageMedia.- Details:
Layer:
223ID:
F6A548D3
- Parameters:
title (
str) – Product name, 1-32 charactersdescription (
str) – Product description, 1-255 characterscurrency (
str) – Three-letter ISO 4217 currency code, or XTR for Telegram Stars.total_amount (
int64-bit) – 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).start_param (
str) – Unique bot deep-linking parameter that can be used to generate this invoiceshipping_address_requested (
bool, optional) – Whether the shipping address was requestedtest (
bool, optional) – Whether this is an example invoicephoto (
WebDocument, optional) – 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.receipt_msg_id (
int32-bit, optional) – 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 Receiptextended_media (
MessageExtendedMedia, optional) – Deprecated
- Functions:
This object can be returned by 2 functions.
Upload a file and associate it to a chat (without actually sending it to the chat)
Upload a media file associated with an imported chat, click here for more info ».
TL Schema
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
Parameter Tree
true (optional)true (optional)stringstringWebDocument (optional)WebDocumentstringlongintstringVector < DocumentAttribute >DocumentAttributeImageSizeintintDocumentAttributeAnimatedDocumentAttributeStickertrue (optional)stringInputStickerSetInputStickerSetEmptyInputStickerSetIDInputStickerSetShortNameInputStickerSetAnimatedEmojiInputStickerSetDiceInputStickerSetAnimatedEmojiAnimationsInputStickerSetPremiumGiftsInputStickerSetEmojiGenericAnimationsInputStickerSetEmojiDefaultStatusesInputStickerSetEmojiDefaultTopicIconsInputStickerSetEmojiChannelDefaultStatusesInputStickerSetTonGiftsMaskCoords (optional)MaskCoordsDocumentAttributeVideotrue (optional)true (optional)true (optional)doubleintintint (optional)double (optional)string (optional)DocumentAttributeAudiotrue (optional)intstring (optional)string (optional)bytes (optional)DocumentAttributeFilenamestringDocumentAttributeHasStickersDocumentAttributeCustomEmojitrue (optional)true (optional)stringInputStickerSetInputStickerSetEmptyInputStickerSetIDInputStickerSetShortNameInputStickerSetAnimatedEmojiInputStickerSetDiceInputStickerSetPremiumGiftsInputStickerSetTonGiftsWebDocumentNoProxystringintstringVector < DocumentAttribute >intintDocumentAttributeStickertrue (optional)stringInputStickerSetInputStickerSetEmptyInputStickerSetIDInputStickerSetShortNameInputStickerSetAnimatedEmojiInputStickerSetDiceInputStickerSetAnimatedEmojiAnimationsInputStickerSetPremiumGiftsInputStickerSetEmojiGenericAnimationsInputStickerSetEmojiDefaultStatusesInputStickerSetEmojiDefaultTopicIconsInputStickerSetTonGiftsMaskCoords (optional)MaskCoordsDocumentAttributeVideotrue (optional)true (optional)true (optional)doubleintintint (optional)double (optional)string (optional)DocumentAttributeAudiotrue (optional)intstring (optional)string (optional)bytes (optional)stringtrue (optional)true (optional)stringInputStickerSetInputStickerSetEmptyInputStickerSetIDInputStickerSetShortNameInputStickerSetDiceInputStickerSetTonGiftsint (optional)stringlongstringMessageExtendedMedia (optional)int (optional)int (optional)PhotoSize (optional)PhotoSizeEmptystringPhotoSizestringintintintPhotoCachedSizestringintintbytesPhotoStrippedSizestringbytesPhotoSizeProgressivestringintintVector < int >PhotoPathSizestringbytesint (optional)MessageMediatrue (optional)Photo (optional)PhotoEmptyPhotoint (optional)MessageMediaGeoGeoPointGeoPointEmptyGeoPointstringstringstringstringlongtrue (optional)true (optional)true (optional)true (optional)true (optional)Document (optional)DocumentEmptyDocumentVector < Document > (optional)DocumentEmptyDocumentPhoto (optional)PhotoEmptyPhotoint (optional)int (optional)true (optional)true (optional)true (optional)true (optional)WebPageWebPageEmptyWebPagePendingWebPageWebPageNotModifiedGeoPointGeoPointEmptyGeoPointstringstringstringstringstringMessageMediaGameGameGametrue (optional)true (optional)stringstringWebDocument (optional)WebDocumentWebDocumentNoProxyint (optional)stringlongstringMessageExtendedMedia (optional)MessageExtendedMediaGeoPointGeoPointEmptyGeoPointint (optional)intint (optional)MessageMediaPollPollPollPollResultsPollResultsMessageMediaDiceintstringmessages.EmojiGameOutcome (optional)true (optional)PeerPeerUserPeerChatPeerChannelintStoryItem (optional)StoryItemDeletedStoryItemSkippedStoryItemtrue (optional)true (optional)Vector < long >Vector < string > (optional)string (optional)intint (optional)long (optional)inttrue (optional)true (optional)longint (optional)intintintVector < long >int (optional)long (optional)string (optional)intlongVector < MessageExtendedMedia >MessageExtendedMediaMessageMediaToDoTodoListTodoListVector < TodoCompletion > (optional)TodoCompletiontrue (optional)InputGroupCallExample
MessageMediaInvoice(
title="text",
description="text",
currency="text",
total_amount=0,
start_param="text",
)