SponsoredMessage

class pyrogram.raw.base.SponsoredMessage

A sponsored message

Constructors:

This base type has 1 constructor available.

SponsoredMessage

A sponsored message.

TL Schema

sponsoredMessage#7dbf8673
flags:#
recommended:flags.5?true
can_report:flags.12?true
random_id:bytes
url:string
title:string
message:string
entities:flags.1?Vector<MessageEntity>
photo:flags.6?Photo
media:flags.14?MessageMedia
color:flags.13?PeerColor
button_text:string
sponsor_info:flags.7?string
additional_info:flags.8?string
min_display_duration:flags.15?int
max_display_duration:flags.15?int

= SponsoredMessage

Parameter Tree

SponsoredMessage
├── recommendedtrue (optional)
├── can_reporttrue (optional)
├── random_idbytes
├── urlstring
├── titlestring
├── messagestring
├── entitiesVector < MessageEntity > (optional)
│ ├── MessageEntityUnknown
│ │ ├── offsetint
│ │ └── lengthint
│ ├── MessageEntityMention
│ │ ├── offsetint
│ │ └── lengthint
│ ├── MessageEntityHashtag
│ │ ├── offsetint
│ │ └── lengthint
│ │ ├── offsetint
│ │ └── lengthint
│ ├── MessageEntityUrl
│ │ ├── offsetint
│ │ └── lengthint
│ ├── MessageEntityEmail
│ │ ├── offsetint
│ │ └── lengthint
│ ├── MessageEntityBold
│ │ ├── offsetint
│ │ └── lengthint
│ ├── MessageEntityItalic
│ │ ├── offsetint
│ │ └── lengthint
│ ├── MessageEntityCode
│ │ ├── offsetint
│ │ └── lengthint
│ ├── MessageEntityPre
│ │ ├── offsetint
│ │ ├── lengthint
│ │ └── languagestring
│ ├── MessageEntityTextUrl
│ │ ├── offsetint
│ │ ├── lengthint
│ │ └── urlstring
│ │ ├── offsetint
│ │ ├── lengthint
│ │ └── user_idlong
│ │ ├── offsetint
│ │ ├── lengthint
│ │ └── user_idInputUser
│ │ ├── InputUserEmpty
│ │ ├── InputUserSelf
│ │ ├── InputUser
│ │ └── InputUserFromMessage
│ ├── MessageEntityPhone
│ │ ├── offsetint
│ │ └── lengthint
│ ├── MessageEntityCashtag
│ │ ├── offsetint
│ │ └── lengthint
│ │ ├── offsetint
│ │ └── lengthint
│ ├── MessageEntityStrike
│ │ ├── offsetint
│ │ └── lengthint
│ ├── MessageEntityBankCard
│ │ ├── offsetint
│ │ └── lengthint
│ ├── MessageEntitySpoiler
│ │ ├── offsetint
│ │ └── lengthint
│ │ ├── offsetint
│ │ ├── lengthint
│ │ └── document_idlong
│ │ ├── collapsedtrue (optional)
│ │ ├── offsetint
│ │ └── lengthint
│ ├── relativetrue (optional)
│ ├── short_timetrue (optional)
│ ├── long_timetrue (optional)
│ ├── short_datetrue (optional)
│ ├── long_datetrue (optional)
│ ├── day_of_weektrue (optional)
│ ├── offsetint
│ ├── lengthint
│ └── dateint
├── photoPhoto (optional)
│ ├── PhotoEmpty
│ │ └── idlong
│ └── Photo
│ ├── has_stickerstrue (optional)
│ ├── idlong
│ ├── access_hashlong
│ ├── file_referencebytes
│ ├── dateint
│ ├── sizesVector < PhotoSize >
│ │ ├── PhotoSizeEmpty
│ │ │ └── typestring
│ │ ├── PhotoSize
│ │ │ ├── typestring
│ │ │ ├── wint
│ │ │ ├── hint
│ │ │ └── sizeint
│ │ ├── PhotoCachedSize
│ │ │ ├── typestring
│ │ │ ├── wint
│ │ │ ├── hint
│ │ │ └── bytesbytes
│ │ ├── PhotoStrippedSize
│ │ │ ├── typestring
│ │ │ └── bytesbytes
│ │ ├── PhotoSizeProgressive
│ │ │ ├── typestring
│ │ │ ├── wint
│ │ │ ├── hint
│ │ │ └── sizesVector < int >
│ │ └── PhotoPathSize
│ │ ├── typestring
│ │ └── bytesbytes
│ ├── video_sizesVector < VideoSize > (optional)
│ │ ├── VideoSize
│ │ │ ├── typestring
│ │ │ ├── wint
│ │ │ ├── hint
│ │ │ ├── sizeint
│ │ │ └── video_start_tsdouble (optional)
│ │ ├── VideoSizeEmojiMarkup
│ │ │ ├── emoji_idlong
│ │ │ └── background_colorsVector < int >
│ │ └── VideoSizeStickerMarkup
│ │ ├── stickersetInputStickerSet
│ │ │ ├── InputStickerSetEmpty
│ │ │ ├── InputStickerSetID
│ │ │ ├── InputStickerSetShortName
│ │ │ ├── InputStickerSetAnimatedEmoji
│ │ │ ├── InputStickerSetDice
│ │ │ ├── InputStickerSetPremiumGifts
│ │ │ └── InputStickerSetTonGifts
│ │ ├── sticker_idlong
│ │ └── background_colorsVector < int >
│ └── dc_idint
├── mediaMessageMedia (optional)
│ ├── MessageMediaEmpty
│ ├── MessageMediaPhoto
│ │ ├── spoilertrue (optional)
│ │ ├── photoPhoto (optional)
│ │ │ ├── PhotoEmpty
│ │ │ │ └── idlong
│ │ │ └── Photo
│ │ │ ├── has_stickerstrue (optional)
│ │ │ ├── idlong
│ │ │ ├── access_hashlong
│ │ │ ├── file_referencebytes
│ │ │ ├── dateint
│ │ │ ├── sizesVector < PhotoSize >
│ │ │ │ ├── PhotoSizeEmpty
│ │ │ │ ├── PhotoSize
│ │ │ │ ├── PhotoCachedSize
│ │ │ │ ├── PhotoStrippedSize
│ │ │ │ ├── PhotoSizeProgressive
│ │ │ │ └── PhotoPathSize
│ │ │ ├── video_sizesVector < VideoSize > (optional)
│ │ │ │ ├── VideoSize
│ │ │ │ ├── VideoSizeEmojiMarkup
│ │ │ │ └── VideoSizeStickerMarkup
│ │ │ └── dc_idint
│ │ └── ttl_secondsint (optional)
│ ├── MessageMediaGeo
│ │ └── geoGeoPoint
│ │ ├── GeoPointEmpty
│ │ └── GeoPoint
│ │ ├── longdouble
│ │ ├── latdouble
│ │ ├── access_hashlong
│ │ └── accuracy_radiusint (optional)
│ ├── MessageMediaContact
│ │ ├── phone_numberstring
│ │ ├── first_namestring
│ │ ├── last_namestring
│ │ ├── vcardstring
│ │ └── user_idlong
│ ├── MessageMediaDocument
│ │ ├── nopremiumtrue (optional)
│ │ ├── spoilertrue (optional)
│ │ ├── videotrue (optional)
│ │ ├── roundtrue (optional)
│ │ ├── voicetrue (optional)
│ │ ├── documentDocument (optional)
│ │ │ ├── DocumentEmpty
│ │ │ │ └── idlong
│ │ │ └── Document
│ │ │ ├── idlong
│ │ │ ├── access_hashlong
│ │ │ ├── file_referencebytes
│ │ │ ├── dateint
│ │ │ ├── mime_typestring
│ │ │ ├── sizelong
│ │ │ ├── thumbsVector < PhotoSize > (optional)
│ │ │ │ ├── PhotoSizeEmpty
│ │ │ │ ├── PhotoSize
│ │ │ │ ├── PhotoCachedSize
│ │ │ │ ├── PhotoStrippedSize
│ │ │ │ ├── PhotoSizeProgressive
│ │ │ │ └── PhotoPathSize
│ │ │ ├── video_thumbsVector < VideoSize > (optional)
│ │ │ │ ├── VideoSize
│ │ │ │ ├── VideoSizeEmojiMarkup
│ │ │ │ └── VideoSizeStickerMarkup
│ │ │ ├── dc_idint
│ │ │ └── attributesVector < DocumentAttribute >
│ │ │ ├── DocumentAttributeImageSize
│ │ │ ├── DocumentAttributeAnimated
│ │ │ ├── DocumentAttributeSticker
│ │ │ ├── DocumentAttributeVideo
│ │ │ ├── DocumentAttributeAudio
│ │ │ ├── DocumentAttributeFilename
│ │ │ ├── DocumentAttributeHasStickers
│ │ │ └── DocumentAttributeCustomEmoji
│ │ ├── alt_documentsVector < Document > (optional)
│ │ │ ├── DocumentEmpty
│ │ │ │ └── idlong
│ │ │ └── Document
│ │ │ ├── idlong
│ │ │ ├── access_hashlong
│ │ │ ├── file_referencebytes
│ │ │ ├── dateint
│ │ │ ├── mime_typestring
│ │ │ ├── sizelong
│ │ │ ├── thumbsVector < PhotoSize > (optional)
│ │ │ │ ├── PhotoSizeEmpty
│ │ │ │ ├── PhotoSize
│ │ │ │ ├── PhotoCachedSize
│ │ │ │ ├── PhotoStrippedSize
│ │ │ │ ├── PhotoSizeProgressive
│ │ │ │ └── PhotoPathSize
│ │ │ ├── video_thumbsVector < VideoSize > (optional)
│ │ │ │ ├── VideoSize
│ │ │ │ ├── VideoSizeEmojiMarkup
│ │ │ │ └── VideoSizeStickerMarkup
│ │ │ ├── dc_idint
│ │ │ └── attributesVector < DocumentAttribute >
│ │ │ ├── DocumentAttributeImageSize
│ │ │ ├── DocumentAttributeAnimated
│ │ │ ├── DocumentAttributeSticker
│ │ │ ├── DocumentAttributeVideo
│ │ │ ├── DocumentAttributeAudio
│ │ │ ├── DocumentAttributeFilename
│ │ │ ├── DocumentAttributeHasStickers
│ │ │ └── DocumentAttributeCustomEmoji
│ │ ├── video_coverPhoto (optional)
│ │ │ ├── PhotoEmpty
│ │ │ │ └── idlong
│ │ │ └── Photo
│ │ │ ├── has_stickerstrue (optional)
│ │ │ ├── idlong
│ │ │ ├── access_hashlong
│ │ │ ├── file_referencebytes
│ │ │ ├── dateint
│ │ │ ├── sizesVector < PhotoSize >
│ │ │ │ ├── PhotoSizeEmpty
│ │ │ │ ├── PhotoSize
│ │ │ │ ├── PhotoCachedSize
│ │ │ │ ├── PhotoStrippedSize
│ │ │ │ ├── PhotoSizeProgressive
│ │ │ │ └── PhotoPathSize
│ │ │ ├── video_sizesVector < VideoSize > (optional)
│ │ │ │ ├── VideoSize
│ │ │ │ ├── VideoSizeEmojiMarkup
│ │ │ │ └── VideoSizeStickerMarkup
│ │ │ └── dc_idint
│ │ ├── video_timestampint (optional)
│ │ └── ttl_secondsint (optional)
│ ├── MessageMediaWebPage
│ │ ├── force_large_mediatrue (optional)
│ │ ├── force_small_mediatrue (optional)
│ │ ├── manualtrue (optional)
│ │ ├── safetrue (optional)
│ │ └── webpageWebPage
│ │ ├── WebPageEmpty
│ │ │ ├── idlong
│ │ │ └── urlstring (optional)
│ │ ├── WebPagePending
│ │ │ ├── idlong
│ │ │ ├── urlstring (optional)
│ │ │ └── dateint
│ │ ├── WebPage
│ │ │ ├── has_large_mediatrue (optional)
│ │ │ ├── video_cover_phototrue (optional)
│ │ │ ├── idlong
│ │ │ ├── urlstring
│ │ │ ├── display_urlstring
│ │ │ ├── hashint
│ │ │ ├── typestring (optional)
│ │ │ ├── site_namestring (optional)
│ │ │ ├── titlestring (optional)
│ │ │ ├── descriptionstring (optional)
│ │ │ ├── photoPhoto (optional)
│ │ │ │ ├── PhotoEmpty
│ │ │ │ └── Photo
│ │ │ ├── embed_urlstring (optional)
│ │ │ ├── embed_typestring (optional)
│ │ │ ├── embed_widthint (optional)
│ │ │ ├── embed_heightint (optional)
│ │ │ ├── durationint (optional)
│ │ │ ├── authorstring (optional)
│ │ │ ├── documentDocument (optional)
│ │ │ │ ├── DocumentEmpty
│ │ │ │ └── Document
│ │ │ ├── cached_pagePage (optional)
│ │ │ │ └── Page
│ │ │ └── attributesVector < WebPageAttribute > (optional)
│ │ │ ├── WebPageAttributeTheme
│ │ │ ├── WebPageAttributeStory
│ │ │ ├── WebPageAttributeStickerSet
│ │ │ ├── WebPageAttributeUniqueStarGift
│ │ │ └── WebPageAttributeStarGiftAuction
│ │ └── WebPageNotModified
│ │ └── cached_page_viewsint (optional)
│ ├── MessageMediaVenue
│ │ ├── geoGeoPoint
│ │ │ ├── GeoPointEmpty
│ │ │ └── GeoPoint
│ │ │ ├── longdouble
│ │ │ ├── latdouble
│ │ │ ├── access_hashlong
│ │ │ └── accuracy_radiusint (optional)
│ │ ├── titlestring
│ │ ├── addressstring
│ │ ├── providerstring
│ │ ├── venue_idstring
│ │ └── venue_typestring
│ ├── MessageMediaGame
│ │ └── gameGame
│ │ └── Game
│ │ ├── idlong
│ │ ├── access_hashlong
│ │ ├── short_namestring
│ │ ├── titlestring
│ │ ├── descriptionstring
│ │ ├── photoPhoto
│ │ │ ├── PhotoEmpty
│ │ │ └── Photo
│ │ └── documentDocument (optional)
│ │ ├── DocumentEmpty
│ │ └── Document
│ ├── MessageMediaInvoice
│ │ ├── shipping_address_requestedtrue (optional)
│ │ ├── testtrue (optional)
│ │ ├── titlestring
│ │ ├── descriptionstring
│ │ ├── photoWebDocument (optional)
│ │ │ ├── WebDocument
│ │ │ │ ├── urlstring
│ │ │ │ ├── access_hashlong
│ │ │ │ ├── sizeint
│ │ │ │ ├── mime_typestring
│ │ │ │ └── attributesVector < DocumentAttribute >
│ │ │ │ ├── DocumentAttributeImageSize
│ │ │ │ ├── DocumentAttributeAnimated
│ │ │ │ ├── DocumentAttributeSticker
│ │ │ │ ├── DocumentAttributeVideo
│ │ │ │ ├── DocumentAttributeAudio
│ │ │ │ ├── DocumentAttributeFilename
│ │ │ │ ├── DocumentAttributeHasStickers
│ │ │ │ └── DocumentAttributeCustomEmoji
│ │ │ └── WebDocumentNoProxy
│ │ │ ├── urlstring
│ │ │ ├── sizeint
│ │ │ ├── mime_typestring
│ │ │ └── attributesVector < DocumentAttribute >
│ │ │ ├── DocumentAttributeImageSize
│ │ │ ├── DocumentAttributeAnimated
│ │ │ ├── DocumentAttributeSticker
│ │ │ ├── DocumentAttributeVideo
│ │ │ ├── DocumentAttributeAudio
│ │ │ ├── DocumentAttributeFilename
│ │ │ ├── DocumentAttributeHasStickers
│ │ │ └── DocumentAttributeCustomEmoji
│ │ ├── receipt_msg_idint (optional)
│ │ ├── currencystring
│ │ ├── total_amountlong
│ │ ├── start_paramstring
│ │ └── extended_mediaMessageExtendedMedia (optional)
│ │ ├── MessageExtendedMediaPreview
│ │ │ ├── wint (optional)
│ │ │ ├── hint (optional)
│ │ │ ├── thumbPhotoSize (optional)
│ │ │ │ ├── PhotoSizeEmpty
│ │ │ │ ├── PhotoSize
│ │ │ │ ├── PhotoCachedSize
│ │ │ │ ├── PhotoStrippedSize
│ │ │ │ ├── PhotoSizeProgressive
│ │ │ │ └── PhotoPathSize
│ │ │ └── video_durationint (optional)
│ │ └── MessageExtendedMedia
│ │ └── mediaMessageMedia
│ │ ├── MessageMediaEmpty
│ │ ├── MessageMediaPhoto
│ │ ├── MessageMediaGeo
│ │ ├── MessageMediaContact
│ │ ├── MessageMediaUnsupported
│ │ ├── MessageMediaDocument
│ │ ├── MessageMediaWebPage
│ │ ├── MessageMediaVenue
│ │ ├── MessageMediaGame
│ │ ├── MessageMediaInvoice
│ │ ├── MessageMediaGeoLive
│ │ ├── MessageMediaPoll
│ │ ├── MessageMediaDice
│ │ ├── MessageMediaStory
│ │ ├── MessageMediaGiveaway
│ │ ├── MessageMediaGiveawayResults
│ │ ├── MessageMediaPaidMedia
│ │ ├── MessageMediaToDo
│ │ └── MessageMediaVideoStream
│ ├── MessageMediaGeoLive
│ │ ├── geoGeoPoint
│ │ │ ├── GeoPointEmpty
│ │ │ └── GeoPoint
│ │ │ ├── longdouble
│ │ │ ├── latdouble
│ │ │ ├── access_hashlong
│ │ │ └── accuracy_radiusint (optional)
│ │ ├── headingint (optional)
│ │ ├── periodint
│ │ └── proximity_notification_radiusint (optional)
│ ├── MessageMediaPoll
│ │ ├── pollPoll
│ │ │ └── Poll
│ │ │ ├── idlong
│ │ │ ├── closedtrue (optional)
│ │ │ ├── public_voterstrue (optional)
│ │ │ ├── multiple_choicetrue (optional)
│ │ │ ├── quiztrue (optional)
│ │ │ ├── questionTextWithEntities
│ │ │ │ └── TextWithEntities
│ │ │ ├── answersVector < PollAnswer >
│ │ │ │ └── PollAnswer
│ │ │ ├── close_periodint (optional)
│ │ │ └── close_dateint (optional)
│ │ └── resultsPollResults
│ │ └── PollResults
│ │ ├── mintrue (optional)
│ │ ├── resultsVector < PollAnswerVoters > (optional)
│ │ │ └── PollAnswerVoters
│ │ ├── total_votersint (optional)
│ │ ├── recent_votersVector < Peer > (optional)
│ │ │ ├── PeerUser
│ │ │ ├── PeerChat
│ │ │ └── PeerChannel
│ │ ├── solutionstring (optional)
│ │ └── solution_entitiesVector < MessageEntity > (optional)
│ │ ├── MessageEntityUnknown
│ │ ├── MessageEntityMention
│ │ ├── MessageEntityHashtag
│ │ ├── MessageEntityBotCommand
│ │ ├── MessageEntityUrl
│ │ ├── MessageEntityEmail
│ │ ├── MessageEntityBold
│ │ ├── MessageEntityItalic
│ │ ├── MessageEntityCode
│ │ ├── MessageEntityPre
│ │ ├── MessageEntityTextUrl
│ │ ├── MessageEntityMentionName
│ │ ├── MessageEntityPhone
│ │ ├── MessageEntityCashtag
│ │ ├── MessageEntityUnderline
│ │ ├── MessageEntityStrike
│ │ ├── MessageEntityBankCard
│ │ ├── MessageEntitySpoiler
│ │ ├── MessageEntityCustomEmoji
│ │ ├── MessageEntityBlockquote
│ │ └── MessageEntityFormattedDate
│ ├── MessageMediaDice
│ │ ├── valueint
│ │ ├── emoticonstring
│ │ └── game_outcomemessages.EmojiGameOutcome (optional)
│ │ └── messages.EmojiGameOutcome
│ │ ├── seedbytes
│ │ ├── stake_ton_amountlong
│ │ └── ton_amountlong
│ ├── MessageMediaStory
│ │ ├── via_mentiontrue (optional)
│ │ ├── peerPeer
│ │ │ ├── PeerUser
│ │ │ │ └── user_idlong
│ │ │ ├── PeerChat
│ │ │ │ └── chat_idlong
│ │ │ └── PeerChannel
│ │ │ └── channel_idlong
│ │ ├── idint
│ │ └── storyStoryItem (optional)
│ │ ├── StoryItemDeleted
│ │ │ └── idint
│ │ ├── StoryItemSkipped
│ │ │ ├── close_friendstrue (optional)
│ │ │ ├── livetrue (optional)
│ │ │ ├── idint
│ │ │ ├── dateint
│ │ │ └── expire_dateint
│ │ └── StoryItem
│ │ ├── pinnedtrue (optional)
│ │ ├── publictrue (optional)
│ │ ├── close_friendstrue (optional)
│ │ ├── mintrue (optional)
│ │ ├── noforwardstrue (optional)
│ │ ├── editedtrue (optional)
│ │ ├── contactstrue (optional)
│ │ ├── selected_contactstrue (optional)
│ │ ├── outtrue (optional)
│ │ ├── idint
│ │ ├── dateint
│ │ ├── from_idPeer (optional)
│ │ │ ├── PeerUser
│ │ │ ├── PeerChat
│ │ │ └── PeerChannel
│ │ ├── fwd_fromStoryFwdHeader (optional)
│ │ │ └── StoryFwdHeader
│ │ ├── expire_dateint
│ │ ├── captionstring (optional)
│ │ ├── entitiesVector < MessageEntity > (optional)
│ │ │ ├── MessageEntityUnknown
│ │ │ ├── MessageEntityMention
│ │ │ ├── MessageEntityHashtag
│ │ │ ├── MessageEntityBotCommand
│ │ │ ├── MessageEntityUrl
│ │ │ ├── MessageEntityEmail
│ │ │ ├── MessageEntityBold
│ │ │ ├── MessageEntityItalic
│ │ │ ├── MessageEntityCode
│ │ │ ├── MessageEntityPre
│ │ │ ├── MessageEntityTextUrl
│ │ │ ├── MessageEntityMentionName
│ │ │ ├── InputMessageEntityMentionName
│ │ │ ├── MessageEntityPhone
│ │ │ ├── MessageEntityCashtag
│ │ │ ├── MessageEntityUnderline
│ │ │ ├── MessageEntityStrike
│ │ │ ├── MessageEntityBankCard
│ │ │ ├── MessageEntitySpoiler
│ │ │ ├── MessageEntityCustomEmoji
│ │ │ ├── MessageEntityBlockquote
│ │ │ └── MessageEntityFormattedDate
│ │ ├── mediaMessageMedia
│ │ │ ├── MessageMediaEmpty
│ │ │ ├── MessageMediaPhoto
│ │ │ ├── MessageMediaGeo
│ │ │ ├── MessageMediaContact
│ │ │ ├── MessageMediaUnsupported
│ │ │ ├── MessageMediaDocument
│ │ │ ├── MessageMediaWebPage
│ │ │ ├── MessageMediaVenue
│ │ │ ├── MessageMediaGame
│ │ │ ├── MessageMediaInvoice
│ │ │ ├── MessageMediaGeoLive
│ │ │ ├── MessageMediaPoll
│ │ │ ├── MessageMediaDice
│ │ │ ├── MessageMediaStory
│ │ │ ├── MessageMediaGiveaway
│ │ │ ├── MessageMediaGiveawayResults
│ │ │ ├── MessageMediaPaidMedia
│ │ │ ├── MessageMediaToDo
│ │ │ └── MessageMediaVideoStream
│ │ ├── media_areasVector < MediaArea > (optional)
│ │ │ ├── MediaAreaVenue
│ │ │ ├── InputMediaAreaVenue
│ │ │ ├── MediaAreaGeoPoint
│ │ │ ├── MediaAreaSuggestedReaction
│ │ │ ├── MediaAreaChannelPost
│ │ │ ├── InputMediaAreaChannelPost
│ │ │ ├── MediaAreaUrl
│ │ │ ├── MediaAreaWeather
│ │ │ └── MediaAreaStarGift
│ │ ├── privacyVector < PrivacyRule > (optional)
│ │ │ ├── PrivacyValueAllowContacts
│ │ │ ├── PrivacyValueAllowAll
│ │ │ ├── PrivacyValueAllowUsers
│ │ │ ├── PrivacyValueDisallowContacts
│ │ │ ├── PrivacyValueDisallowAll
│ │ │ ├── PrivacyValueDisallowUsers
│ │ │ ├── PrivacyValueAllowChatParticipants
│ │ │ ├── PrivacyValueAllowCloseFriends
│ │ │ ├── PrivacyValueAllowPremium
│ │ │ ├── PrivacyValueAllowBots
│ │ │ └── PrivacyValueDisallowBots
│ │ ├── viewsStoryViews (optional)
│ │ │ └── StoryViews
│ │ ├── sent_reactionReaction (optional)
│ │ │ ├── ReactionEmpty
│ │ │ ├── ReactionEmoji
│ │ │ ├── ReactionCustomEmoji
│ │ │ └── ReactionPaid
│ │ └── albumsVector < int > (optional)
│ ├── MessageMediaGiveaway
│ │ ├── only_new_subscriberstrue (optional)
│ │ ├── winners_are_visibletrue (optional)
│ │ ├── channelsVector < long >
│ │ ├── countries_iso2Vector < string > (optional)
│ │ ├── prize_descriptionstring (optional)
│ │ ├── quantityint
│ │ ├── monthsint (optional)
│ │ ├── starslong (optional)
│ │ └── until_dateint
│ │ ├── only_new_subscriberstrue (optional)
│ │ ├── refundedtrue (optional)
│ │ ├── channel_idlong
│ │ ├── additional_peers_countint (optional)
│ │ ├── launch_msg_idint
│ │ ├── winners_countint
│ │ ├── unclaimed_countint
│ │ ├── winnersVector < long >
│ │ ├── monthsint (optional)
│ │ ├── starslong (optional)
│ │ ├── prize_descriptionstring (optional)
│ │ └── until_dateint
│ ├── MessageMediaPaidMedia
│ │ ├── stars_amountlong
│ │ └── extended_mediaVector < MessageExtendedMedia >
│ │ ├── MessageExtendedMediaPreview
│ │ │ ├── wint (optional)
│ │ │ ├── hint (optional)
│ │ │ ├── thumbPhotoSize (optional)
│ │ │ │ ├── PhotoSizeEmpty
│ │ │ │ ├── PhotoSize
│ │ │ │ ├── PhotoCachedSize
│ │ │ │ ├── PhotoStrippedSize
│ │ │ │ ├── PhotoSizeProgressive
│ │ │ │ └── PhotoPathSize
│ │ │ └── video_durationint (optional)
│ │ └── MessageExtendedMedia
│ │ └── mediaMessageMedia
│ │ ├── MessageMediaEmpty
│ │ ├── MessageMediaPhoto
│ │ ├── MessageMediaGeo
│ │ ├── MessageMediaContact
│ │ ├── MessageMediaUnsupported
│ │ ├── MessageMediaDocument
│ │ ├── MessageMediaWebPage
│ │ ├── MessageMediaVenue
│ │ ├── MessageMediaGame
│ │ ├── MessageMediaInvoice
│ │ ├── MessageMediaGeoLive
│ │ ├── MessageMediaPoll
│ │ ├── MessageMediaDice
│ │ ├── MessageMediaStory
│ │ ├── MessageMediaGiveaway
│ │ ├── MessageMediaGiveawayResults
│ │ ├── MessageMediaPaidMedia
│ │ ├── MessageMediaToDo
│ │ └── MessageMediaVideoStream
│ ├── MessageMediaToDo
│ │ ├── todoTodoList
│ │ │ └── TodoList
│ │ │ ├── others_can_appendtrue (optional)
│ │ │ ├── others_can_completetrue (optional)
│ │ │ ├── titleTextWithEntities
│ │ │ │ └── TextWithEntities
│ │ │ └── listVector < TodoItem >
│ │ │ └── TodoItem
│ │ └── completionsVector < TodoCompletion > (optional)
│ │ └── TodoCompletion
│ │ ├── idint
│ │ ├── completed_byPeer
│ │ │ ├── PeerUser
│ │ │ ├── PeerChat
│ │ │ └── PeerChannel
│ │ └── dateint
│ ├── rtmp_streamtrue (optional)
│ └── callInputGroupCall
│ ├── InputGroupCall
│ │ ├── idlong
│ │ └── access_hashlong
│ ├── InputGroupCallSlug
│ │ └── slugstring
│ └── msg_idint
├── colorPeerColor (optional)
│ ├── PeerColor
│ │ ├── colorint (optional)
│ │ └── background_emoji_idlong (optional)
│ ├── PeerColorCollectible
│ │ ├── collectible_idlong
│ │ ├── gift_emoji_idlong
│ │ ├── background_emoji_idlong
│ │ ├── accent_colorint
│ │ ├── colorsVector < int >
│ │ ├── dark_accent_colorint (optional)
│ │ └── dark_colorsVector < int > (optional)
│ └── collectible_idlong
├── button_textstring
├── sponsor_infostring (optional)
├── additional_infostring (optional)
├── min_display_durationint (optional)
└── max_display_durationint (optional)

Example

SponsoredMessage(
    recommended=None,
    can_report=None,
    random_id=b"data",
    url="https://google.com",
    title="text",
    message="Hello",
    entities=[
            MessageEntityUnknown(
                offset=0,
                length=0
            )
        ],
    photo=PhotoEmpty(id=0),
    media=MessageMediaEmpty(),
    color=PeerColor(
        color=None,
        background_emoji_id=None
    ),
    button_text="text",
    sponsor_info="text",
    additional_info="text",
    min_display_duration=0,
    max_display_duration=0,
)