MessageMediaPaidMedia
- class pyrogram.raw.types.MessageMediaPaidMedia
Paid media, see here » for more info.
Constructor of
MessageMedia.- Details:
Layer:
223ID:
A8852491
- Parameters:
stars_amount (
int64-bit) – The price of the media in Telegram Stars.extended_media (List of
MessageExtendedMedia) – Either the paid-for media, or super low resolution media previews if the media wasn’t purchased yet, see here » for more info.
- 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
messageMediaPaidMedia#a8852491
stars_amount:long
extended_media:Vector<MessageExtendedMedia>
= MessageMedia
Parameter Tree
MessageMediaPaidMedia
├── stars_amount →
long└── extended_media →
Vector < MessageExtendedMedia >│ ├── w →
int (optional)│ ├── h →
int (optional)│ ├── thumb →
PhotoSize (optional)│ │ ├──
PhotoSizeEmpty│ │ │ └── type →
string│ │ ├──
PhotoSize│ │ │ ├── type →
string│ │ │ ├── w →
int│ │ │ ├── h →
int│ │ │ └── size →
int│ │ ├──
PhotoCachedSize│ │ │ ├── type →
string│ │ │ ├── w →
int│ │ │ ├── h →
int│ │ │ └── bytes →
bytes│ │ ├──
PhotoStrippedSize│ │ │ ├── type →
string│ │ │ └── bytes →
bytes│ │ ├──
PhotoSizeProgressive│ │ │ ├── type →
string│ │ │ ├── w →
int│ │ │ ├── h →
int│ │ │ └── sizes →
Vector < int >│ │ └──
PhotoPathSize│ │ ├── type →
string│ │ └── bytes →
bytes│ └── video_duration →
int (optional)└── media →
MessageMedia│ ├── spoiler →
true (optional)│ ├── photo →
Photo (optional)│ │ ├──
PhotoEmpty│ │ └──
Photo│ └── ttl_seconds →
int (optional)├──
MessageMediaGeo│ └── geo →
GeoPoint│ ├──
GeoPointEmpty│ └──
GeoPoint│ ├── phone_number →
string│ ├── first_name →
string│ ├── last_name →
string│ ├── vcard →
string│ └── user_id →
long│ ├── nopremium →
true (optional)│ ├── spoiler →
true (optional)│ ├── video →
true (optional)│ ├── round →
true (optional)│ ├── voice →
true (optional)│ ├── document →
Document (optional)│ │ ├──
DocumentEmpty│ │ └──
Document│ ├── alt_documents →
Vector < Document > (optional)│ │ ├──
DocumentEmpty│ │ └──
Document│ ├── video_cover →
Photo (optional)│ │ ├──
PhotoEmpty│ │ └──
Photo│ ├── video_timestamp →
int (optional)│ └── ttl_seconds →
int (optional)│ ├── force_large_media →
true (optional)│ ├── force_small_media →
true (optional)│ ├── manual →
true (optional)│ ├── safe →
true (optional)│ └── webpage →
WebPage│ ├──
WebPageEmpty│ ├──
WebPagePending│ ├──
WebPage│ └──
WebPageNotModified│ ├── geo →
GeoPoint│ │ ├──
GeoPointEmpty│ │ └──
GeoPoint│ ├── title →
string│ ├── address →
string│ ├── provider →
string│ ├── venue_id →
string│ └── venue_type →
string├──
MessageMediaGame│ └── game →
Game│ └──
Game│ ├── shipping_address_requested →
true (optional)│ ├── test →
true (optional)│ ├── title →
string│ ├── description →
string│ ├── photo →
WebDocument (optional)│ │ ├──
WebDocument│ │ └──
WebDocumentNoProxy│ ├── receipt_msg_id →
int (optional)│ ├── currency →
string│ ├── total_amount →
long│ ├── start_param →
string│ └── extended_media →
MessageExtendedMedia (optional)│ └──
MessageExtendedMedia│ ├── geo →
GeoPoint│ │ ├──
GeoPointEmpty│ │ └──
GeoPoint│ ├── heading →
int (optional)│ ├── period →
int│ └── proximity_notification_radius →
int (optional)├──
MessageMediaPoll│ ├── poll →
Poll│ │ └──
Poll│ └── results →
PollResults│ └──
PollResults├──
MessageMediaDice│ ├── value →
int│ ├── emoticon →
string│ └── game_outcome →
messages.EmojiGameOutcome (optional)│ ├── via_mention →
true (optional)│ ├── peer →
Peer│ │ ├──
PeerUser│ │ ├──
PeerChat│ │ └──
PeerChannel│ ├── id →
int│ └── story →
StoryItem (optional)│ ├──
StoryItemDeleted│ ├──
StoryItemSkipped│ └──
StoryItem│ ├── only_new_subscribers →
true (optional)│ ├── winners_are_visible →
true (optional)│ ├── channels →
Vector < long >│ ├── countries_iso2 →
Vector < string > (optional)│ ├── prize_description →
string (optional)│ ├── quantity →
int│ ├── months →
int (optional)│ ├── stars →
long (optional)│ └── until_date →
int│ ├── only_new_subscribers →
true (optional)│ ├── refunded →
true (optional)│ ├── channel_id →
long│ ├── additional_peers_count →
int (optional)│ ├── launch_msg_id →
int│ ├── winners_count →
int│ ├── unclaimed_count →
int│ ├── winners →
Vector < long >│ ├── months →
int (optional)│ ├── stars →
long (optional)│ ├── prize_description →
string (optional)│ └── until_date →
int│ ├── stars_amount →
long│ └── extended_media →
Vector < MessageExtendedMedia >│ └──
MessageExtendedMedia├──
MessageMediaToDo│ ├── todo →
TodoList│ │ └──
TodoList│ └── completions →
Vector < TodoCompletion > (optional)│ └──
TodoCompletion├── rtmp_stream →
true (optional)└── call →
InputGroupCallExample
MessageMediaPaidMedia(
stars_amount=0,
extended_media=[
MessageExtendedMediaPreview()
],
)