MessageMediaPaidMedia

class pyrogram.raw.types.MessageMediaPaidMedia

Paid media, see here » for more info.

Constructor of MessageMedia.

Details:
  • Layer: 227

  • ID: A8852491

Parameters:
  • stars_amount (int 64-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.

messages.UploadMedia

Upload a file and associate it to a chat (without actually sending it to the chat)

messages.UploadImportedMedia

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)
│ ├── live_photo → true (optional)
│ ├── photo → Photo (optional)
│ │ ├── PhotoEmpty
│ │ └── Photo
│ ├── ttl_seconds → int (optional)
│ └── video → Document (optional)
│ ├── DocumentEmpty
│ └── Document
├── 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
│ └── 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)
│ ├── poll → Poll
│ │ └── Poll
│ ├── results → PollResults
│ │ └── PollResults
│ └── attached_media → MessageMedia (optional)
│ ├── MessageMediaEmpty
│ ├── MessageMediaPhoto
│ ├── MessageMediaGeo
│ ├── MessageMediaContact
│ ├── MessageMediaDocument
│ ├── MessageMediaWebPage
│ ├── MessageMediaVenue
│ ├── MessageMediaGame
│ ├── MessageMediaInvoice
│ ├── MessageMediaGeoLive
│ ├── MessageMediaPoll
│ ├── MessageMediaDice
│ ├── MessageMediaStory
│ ├── MessageMediaGiveaway
│ ├── MessageMediaPaidMedia
│ ├── MessageMediaToDo
│ ├── 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
│ ├── todo → TodoList
│ │ └── TodoList
│ └── completions → Vector < TodoCompletion > (optional)
│ └── TodoCompletion
├── rtmp_stream → true (optional)
└── call → InputGroupCall

Example

MessageMediaPaidMedia(
    stars_amount=0,
    extended_media=[
            MessageExtendedMediaPreview()
        ],
)