InputMediaPoll

class pyrogram.raw.types.InputMediaPoll

A poll

Constructor of InputMedia.

Details:
  • Layer: 224

  • ID: 883A4108

Parameters:
  • poll (Poll) – The poll to send

  • correct_answers (List of int 32-bit, optional) – Correct answer IDs (for quiz polls)

  • attached_media (InputMedia, optional) – N/A

  • solution (str, optional) – Explanation of quiz solution

  • solution_entities (List of MessageEntity, optional) – Message entities for styled text

  • solution_media (InputMedia, optional) – N/A

TL Schema

inputMediaPoll#883a4108
flags:#
poll:Poll
correct_answers:flags.0?Vector<int>
attached_media:flags.3?InputMedia
solution:flags.1?string
solution_entities:flags.1?Vector<MessageEntity>
solution_media:flags.2?InputMedia

= InputMedia

Parameter Tree

InputMediaPoll
├── pollPoll
│ └── Poll
│ ├── idlong
│ ├── closedtrue (optional)
│ ├── public_voterstrue (optional)
│ ├── multiple_choicetrue (optional)
│ ├── quiztrue (optional)
│ ├── open_answerstrue (optional)
│ ├── revoting_disabledtrue (optional)
│ ├── shuffle_answerstrue (optional)
│ ├── hide_results_until_closetrue (optional)
│ ├── creatortrue (optional)
│ ├── questionTextWithEntities
│ │ └── TextWithEntities
│ │ ├── textstring
│ │ └── entitiesVector < MessageEntity >
│ │ ├── MessageEntityUnknown
│ │ ├── MessageEntityMention
│ │ ├── MessageEntityHashtag
│ │ ├── MessageEntityBotCommand
│ │ ├── MessageEntityUrl
│ │ ├── MessageEntityEmail
│ │ ├── MessageEntityBold
│ │ ├── MessageEntityItalic
│ │ ├── MessageEntityCode
│ │ ├── MessageEntityPre
│ │ ├── MessageEntityTextUrl
│ │ ├── MessageEntityMentionName
│ │ ├── MessageEntityPhone
│ │ ├── MessageEntityCashtag
│ │ ├── MessageEntityUnderline
│ │ ├── MessageEntityStrike
│ │ ├── MessageEntityBankCard
│ │ ├── MessageEntitySpoiler
│ │ ├── MessageEntityCustomEmoji
│ │ ├── MessageEntityBlockquote
│ │ ├── MessageEntityFormattedDate
│ │ ├── MessageEntityDiffInsert
│ │ ├── MessageEntityDiffReplace
│ │ └── MessageEntityDiffDelete
│ ├── answersVector < PollAnswer >
│ │ ├── PollAnswer
│ │ │ ├── textTextWithEntities
│ │ │ │ └── TextWithEntities
│ │ │ ├── optionbytes
│ │ │ ├── mediaMessageMedia (optional)
│ │ │ │ ├── MessageMediaEmpty
│ │ │ │ ├── MessageMediaPhoto
│ │ │ │ ├── MessageMediaGeo
│ │ │ │ ├── MessageMediaContact
│ │ │ │ ├── MessageMediaUnsupported
│ │ │ │ ├── MessageMediaDocument
│ │ │ │ ├── MessageMediaWebPage
│ │ │ │ ├── MessageMediaVenue
│ │ │ │ ├── MessageMediaGame
│ │ │ │ ├── MessageMediaInvoice
│ │ │ │ ├── MessageMediaGeoLive
│ │ │ │ ├── MessageMediaPoll
│ │ │ │ ├── MessageMediaDice
│ │ │ │ ├── MessageMediaStory
│ │ │ │ ├── MessageMediaGiveaway
│ │ │ │ ├── MessageMediaGiveawayResults
│ │ │ │ ├── MessageMediaPaidMedia
│ │ │ │ ├── MessageMediaToDo
│ │ │ │ └── MessageMediaVideoStream
│ │ │ ├── added_byPeer (optional)
│ │ │ │ ├── PeerUser
│ │ │ │ ├── PeerChat
│ │ │ │ └── PeerChannel
│ │ │ └── dateint (optional)
│ │ └── InputPollAnswer
│ │ ├── textTextWithEntities
│ │ │ └── TextWithEntities
│ │ └── mediaInputMedia (optional)
│ │ ├── InputMediaEmpty
│ │ ├── InputMediaUploadedPhoto
│ │ ├── InputMediaPhoto
│ │ ├── InputMediaGeoPoint
│ │ ├── InputMediaContact
│ │ ├── InputMediaUploadedDocument
│ │ ├── InputMediaDocument
│ │ ├── InputMediaVenue
│ │ ├── InputMediaPhotoExternal
│ │ ├── InputMediaDocumentExternal
│ │ ├── InputMediaGame
│ │ ├── InputMediaInvoice
│ │ ├── InputMediaGeoLive
│ │ ├── InputMediaPoll
│ │ ├── InputMediaDice
│ │ ├── InputMediaStory
│ │ ├── InputMediaWebPage
│ │ ├── InputMediaPaidMedia
│ │ ├── InputMediaTodo
│ │ └── InputMediaStakeDice
│ ├── close_periodint (optional)
│ ├── close_dateint (optional)
│ └── hashlong
├── correct_answersVector < int > (optional)
├── attached_mediaInputMedia (optional)
│ ├── InputMediaEmpty
│ │ ├── spoilertrue (optional)
│ │ ├── live_phototrue (optional)
│ │ ├── fileInputFile
│ │ │ ├── InputFile
│ │ │ ├── InputFileBig
│ │ │ └── InputFileStoryDocument
│ │ ├── stickersVector < InputDocument > (optional)
│ │ │ ├── InputDocumentEmpty
│ │ │ └── InputDocument
│ │ │ ├── idlong
│ │ │ ├── access_hashlong
│ │ │ └── file_referencebytes
│ │ ├── ttl_secondsint (optional)
│ │ └── videoInputDocument (optional)
│ │ ├── InputDocumentEmpty
│ │ └── InputDocument
│ │ ├── idlong
│ │ ├── access_hashlong
│ │ └── file_referencebytes
│ ├── InputMediaPhoto
│ │ ├── spoilertrue (optional)
│ │ ├── live_phototrue (optional)
│ │ ├── idInputPhoto
│ │ │ ├── InputPhotoEmpty
│ │ │ └── InputPhoto
│ │ │ ├── idlong
│ │ │ ├── access_hashlong
│ │ │ └── file_referencebytes
│ │ ├── ttl_secondsint (optional)
│ │ └── videoInputDocument (optional)
│ │ ├── InputDocumentEmpty
│ │ └── InputDocument
│ │ ├── idlong
│ │ ├── access_hashlong
│ │ └── file_referencebytes
│ ├── InputMediaGeoPoint
│ │ └── geo_pointInputGeoPoint
│ │ ├── InputGeoPointEmpty
│ │ └── InputGeoPoint
│ │ ├── latdouble
│ │ ├── longdouble
│ │ └── accuracy_radiusint (optional)
│ ├── InputMediaContact
│ │ ├── phone_numberstring
│ │ ├── first_namestring
│ │ ├── last_namestring
│ │ └── vcardstring
│ │ ├── nosound_videotrue (optional)
│ │ ├── force_filetrue (optional)
│ │ ├── spoilertrue (optional)
│ │ ├── fileInputFile
│ │ │ ├── InputFile
│ │ │ ├── InputFileBig
│ │ │ └── InputFileStoryDocument
│ │ ├── thumbInputFile (optional)
│ │ │ ├── InputFile
│ │ │ ├── InputFileBig
│ │ │ └── InputFileStoryDocument
│ │ ├── mime_typestring
│ │ ├── attributesVector < DocumentAttribute >
│ │ │ ├── DocumentAttributeImageSize
│ │ │ │ ├── wint
│ │ │ │ └── hint
│ │ │ ├── DocumentAttributeAnimated
│ │ │ ├── DocumentAttributeSticker
│ │ │ │ ├── masktrue (optional)
│ │ │ │ ├── altstring
│ │ │ │ ├── stickersetInputStickerSet
│ │ │ │ │ ├── InputStickerSetEmpty
│ │ │ │ │ ├── InputStickerSetID
│ │ │ │ │ ├── InputStickerSetShortName
│ │ │ │ │ ├── InputStickerSetAnimatedEmoji
│ │ │ │ │ ├── InputStickerSetDice
│ │ │ │ │ ├── InputStickerSetAnimatedEmojiAnimations
│ │ │ │ │ ├── InputStickerSetPremiumGifts
│ │ │ │ │ ├── InputStickerSetEmojiGenericAnimations
│ │ │ │ │ ├── InputStickerSetEmojiDefaultStatuses
│ │ │ │ │ ├── InputStickerSetEmojiDefaultTopicIcons
│ │ │ │ │ ├── InputStickerSetEmojiChannelDefaultStatuses
│ │ │ │ │ └── InputStickerSetTonGifts
│ │ │ │ └── mask_coordsMaskCoords (optional)
│ │ │ │ └── MaskCoords
│ │ │ ├── DocumentAttributeVideo
│ │ │ │ ├── round_messagetrue (optional)
│ │ │ │ ├── supports_streamingtrue (optional)
│ │ │ │ ├── nosoundtrue (optional)
│ │ │ │ ├── durationdouble
│ │ │ │ ├── wint
│ │ │ │ ├── hint
│ │ │ │ ├── preload_prefix_sizeint (optional)
│ │ │ │ ├── video_start_tsdouble (optional)
│ │ │ │ └── video_codecstring (optional)
│ │ │ ├── DocumentAttributeAudio
│ │ │ │ ├── voicetrue (optional)
│ │ │ │ ├── durationint
│ │ │ │ ├── titlestring (optional)
│ │ │ │ ├── performerstring (optional)
│ │ │ │ └── waveformbytes (optional)
│ │ │ ├── DocumentAttributeFilename
│ │ │ │ └── file_namestring
│ │ │ ├── DocumentAttributeHasStickers
│ │ │ └── DocumentAttributeCustomEmoji
│ │ │ ├── freetrue (optional)
│ │ │ ├── text_colortrue (optional)
│ │ │ ├── altstring
│ │ │ └── stickersetInputStickerSet
│ │ │ ├── InputStickerSetEmpty
│ │ │ ├── InputStickerSetID
│ │ │ ├── InputStickerSetShortName
│ │ │ ├── InputStickerSetAnimatedEmoji
│ │ │ ├── InputStickerSetDice
│ │ │ ├── InputStickerSetPremiumGifts
│ │ │ └── InputStickerSetTonGifts
│ │ ├── stickersVector < InputDocument > (optional)
│ │ │ ├── InputDocumentEmpty
│ │ │ └── InputDocument
│ │ │ ├── idlong
│ │ │ ├── access_hashlong
│ │ │ └── file_referencebytes
│ │ ├── video_coverInputPhoto (optional)
│ │ │ ├── InputPhotoEmpty
│ │ │ └── InputPhoto
│ │ │ ├── idlong
│ │ │ ├── access_hashlong
│ │ │ └── file_referencebytes
│ │ ├── video_timestampint (optional)
│ │ └── ttl_secondsint (optional)
│ ├── InputMediaDocument
│ │ ├── spoilertrue (optional)
│ │ ├── idInputDocument
│ │ │ ├── InputDocumentEmpty
│ │ │ └── InputDocument
│ │ │ ├── idlong
│ │ │ ├── access_hashlong
│ │ │ └── file_referencebytes
│ │ ├── video_coverInputPhoto (optional)
│ │ │ ├── InputPhotoEmpty
│ │ │ └── InputPhoto
│ │ │ ├── idlong
│ │ │ ├── access_hashlong
│ │ │ └── file_referencebytes
│ │ ├── video_timestampint (optional)
│ │ ├── ttl_secondsint (optional)
│ │ └── querystring (optional)
│ ├── InputMediaVenue
│ │ ├── geo_pointInputGeoPoint
│ │ │ ├── InputGeoPointEmpty
│ │ │ └── InputGeoPoint
│ │ │ ├── latdouble
│ │ │ ├── longdouble
│ │ │ └── accuracy_radiusint (optional)
│ │ ├── titlestring
│ │ ├── addressstring
│ │ ├── providerstring
│ │ ├── venue_idstring
│ │ └── venue_typestring
│ │ ├── spoilertrue (optional)
│ │ ├── urlstring
│ │ └── ttl_secondsint (optional)
│ │ ├── spoilertrue (optional)
│ │ ├── urlstring
│ │ ├── ttl_secondsint (optional)
│ │ ├── video_coverInputPhoto (optional)
│ │ │ ├── InputPhotoEmpty
│ │ │ └── InputPhoto
│ │ │ ├── idlong
│ │ │ ├── access_hashlong
│ │ │ └── file_referencebytes
│ │ └── video_timestampint (optional)
│ ├── InputMediaGame
│ │ └── idInputGame
│ │ ├── InputGameID
│ │ │ ├── idlong
│ │ │ └── access_hashlong
│ │ └── InputGameShortName
│ │ ├── bot_idInputUser
│ │ │ ├── InputUserEmpty
│ │ │ ├── InputUserSelf
│ │ │ ├── InputUser
│ │ │ └── InputUserFromMessage
│ │ └── short_namestring
│ ├── InputMediaInvoice
│ │ ├── titlestring
│ │ ├── descriptionstring
│ │ ├── photoInputWebDocument (optional)
│ │ │ └── InputWebDocument
│ │ │ ├── urlstring
│ │ │ ├── sizeint
│ │ │ ├── mime_typestring
│ │ │ └── attributesVector < DocumentAttribute >
│ │ │ ├── DocumentAttributeImageSize
│ │ │ ├── DocumentAttributeAnimated
│ │ │ ├── DocumentAttributeSticker
│ │ │ ├── DocumentAttributeVideo
│ │ │ ├── DocumentAttributeAudio
│ │ │ ├── DocumentAttributeFilename
│ │ │ ├── DocumentAttributeHasStickers
│ │ │ └── DocumentAttributeCustomEmoji
│ │ ├── invoiceInvoice
│ │ │ └── Invoice
│ │ │ ├── testtrue (optional)
│ │ │ ├── name_requestedtrue (optional)
│ │ │ ├── phone_requestedtrue (optional)
│ │ │ ├── email_requestedtrue (optional)
│ │ │ ├── shipping_address_requestedtrue (optional)
│ │ │ ├── flexibletrue (optional)
│ │ │ ├── phone_to_providertrue (optional)
│ │ │ ├── email_to_providertrue (optional)
│ │ │ ├── recurringtrue (optional)
│ │ │ ├── currencystring
│ │ │ ├── pricesVector < LabeledPrice >
│ │ │ │ └── LabeledPrice
│ │ │ ├── max_tip_amountlong (optional)
│ │ │ ├── suggested_tip_amountsVector < long > (optional)
│ │ │ ├── terms_urlstring (optional)
│ │ │ └── subscription_periodint (optional)
│ │ ├── payloadbytes
│ │ ├── providerstring (optional)
│ │ ├── provider_dataDataJSON
│ │ │ └── DataJSON
│ │ │ └── datastring
│ │ ├── start_paramstring (optional)
│ │ └── extended_mediaInputMedia (optional)
│ │ ├── InputMediaEmpty
│ │ ├── InputMediaUploadedPhoto
│ │ ├── InputMediaPhoto
│ │ ├── InputMediaGeoPoint
│ │ ├── InputMediaContact
│ │ ├── InputMediaUploadedDocument
│ │ ├── InputMediaDocument
│ │ ├── InputMediaVenue
│ │ ├── InputMediaPhotoExternal
│ │ ├── InputMediaDocumentExternal
│ │ ├── InputMediaGame
│ │ ├── InputMediaInvoice
│ │ ├── InputMediaGeoLive
│ │ ├── InputMediaPoll
│ │ ├── InputMediaDice
│ │ ├── InputMediaStory
│ │ ├── InputMediaWebPage
│ │ ├── InputMediaPaidMedia
│ │ ├── InputMediaTodo
│ │ └── InputMediaStakeDice
│ ├── InputMediaGeoLive
│ │ ├── stoppedtrue (optional)
│ │ ├── geo_pointInputGeoPoint
│ │ │ ├── InputGeoPointEmpty
│ │ │ └── InputGeoPoint
│ │ │ ├── latdouble
│ │ │ ├── longdouble
│ │ │ └── accuracy_radiusint (optional)
│ │ ├── headingint (optional)
│ │ ├── periodint (optional)
│ │ └── proximity_notification_radiusint (optional)
│ ├── InputMediaPoll
│ │ ├── pollPoll
│ │ │ └── Poll
│ │ │ ├── idlong
│ │ │ ├── closedtrue (optional)
│ │ │ ├── public_voterstrue (optional)
│ │ │ ├── multiple_choicetrue (optional)
│ │ │ ├── quiztrue (optional)
│ │ │ ├── open_answerstrue (optional)
│ │ │ ├── revoting_disabledtrue (optional)
│ │ │ ├── shuffle_answerstrue (optional)
│ │ │ ├── hide_results_until_closetrue (optional)
│ │ │ ├── creatortrue (optional)
│ │ │ ├── questionTextWithEntities
│ │ │ │ └── TextWithEntities
│ │ │ ├── answersVector < PollAnswer >
│ │ │ │ ├── PollAnswer
│ │ │ │ └── InputPollAnswer
│ │ │ ├── close_periodint (optional)
│ │ │ ├── close_dateint (optional)
│ │ │ └── hashlong
│ │ ├── correct_answersVector < int > (optional)
│ │ ├── attached_mediaInputMedia (optional)
│ │ │ ├── InputMediaEmpty
│ │ │ ├── InputMediaUploadedPhoto
│ │ │ ├── InputMediaPhoto
│ │ │ ├── InputMediaGeoPoint
│ │ │ ├── InputMediaContact
│ │ │ ├── InputMediaUploadedDocument
│ │ │ ├── InputMediaDocument
│ │ │ ├── InputMediaVenue
│ │ │ ├── InputMediaPhotoExternal
│ │ │ ├── InputMediaDocumentExternal
│ │ │ ├── InputMediaGame
│ │ │ ├── InputMediaInvoice
│ │ │ ├── InputMediaGeoLive
│ │ │ ├── InputMediaPoll
│ │ │ ├── InputMediaDice
│ │ │ ├── InputMediaStory
│ │ │ ├── InputMediaWebPage
│ │ │ ├── InputMediaPaidMedia
│ │ │ ├── InputMediaTodo
│ │ │ └── InputMediaStakeDice
│ │ ├── solutionstring (optional)
│ │ ├── solution_entitiesVector < MessageEntity > (optional)
│ │ │ ├── MessageEntityUnknown
│ │ │ │ ├── offsetint
│ │ │ │ └── lengthint
│ │ │ ├── MessageEntityMention
│ │ │ │ ├── offsetint
│ │ │ │ └── lengthint
│ │ │ ├── MessageEntityHashtag
│ │ │ │ ├── offsetint
│ │ │ │ └── lengthint
│ │ │ ├── MessageEntityBotCommand
│ │ │ │ ├── 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
│ │ │ ├── MessageEntityMentionName
│ │ │ │ ├── offsetint
│ │ │ │ ├── lengthint
│ │ │ │ └── user_idlong
│ │ │ ├── InputMessageEntityMentionName
│ │ │ │ ├── offsetint
│ │ │ │ ├── lengthint
│ │ │ │ └── user_idInputUser
│ │ │ │ ├── InputUserEmpty
│ │ │ │ ├── InputUserSelf
│ │ │ │ ├── InputUser
│ │ │ │ └── InputUserFromMessage
│ │ │ ├── MessageEntityPhone
│ │ │ │ ├── offsetint
│ │ │ │ └── lengthint
│ │ │ ├── MessageEntityCashtag
│ │ │ │ ├── offsetint
│ │ │ │ └── lengthint
│ │ │ ├── MessageEntityUnderline
│ │ │ │ ├── offsetint
│ │ │ │ └── lengthint
│ │ │ ├── MessageEntityStrike
│ │ │ │ ├── offsetint
│ │ │ │ └── lengthint
│ │ │ ├── MessageEntityBankCard
│ │ │ │ ├── offsetint
│ │ │ │ └── lengthint
│ │ │ ├── MessageEntitySpoiler
│ │ │ │ ├── offsetint
│ │ │ │ └── lengthint
│ │ │ ├── MessageEntityCustomEmoji
│ │ │ │ ├── offsetint
│ │ │ │ ├── lengthint
│ │ │ │ └── document_idlong
│ │ │ ├── MessageEntityBlockquote
│ │ │ │ ├── collapsedtrue (optional)
│ │ │ │ ├── offsetint
│ │ │ │ └── lengthint
│ │ │ ├── MessageEntityFormattedDate
│ │ │ │ ├── relativetrue (optional)
│ │ │ │ ├── short_timetrue (optional)
│ │ │ │ ├── long_timetrue (optional)
│ │ │ │ ├── short_datetrue (optional)
│ │ │ │ ├── long_datetrue (optional)
│ │ │ │ ├── day_of_weektrue (optional)
│ │ │ │ ├── offsetint
│ │ │ │ ├── lengthint
│ │ │ │ └── dateint
│ │ │ ├── MessageEntityDiffInsert
│ │ │ │ ├── offsetint
│ │ │ │ └── lengthint
│ │ │ ├── MessageEntityDiffReplace
│ │ │ │ ├── offsetint
│ │ │ │ ├── lengthint
│ │ │ │ └── old_textstring
│ │ │ └── MessageEntityDiffDelete
│ │ │ ├── offsetint
│ │ │ └── lengthint
│ │ └── solution_mediaInputMedia (optional)
│ │ ├── InputMediaEmpty
│ │ ├── InputMediaUploadedPhoto
│ │ ├── InputMediaPhoto
│ │ ├── InputMediaGeoPoint
│ │ ├── InputMediaContact
│ │ ├── InputMediaUploadedDocument
│ │ ├── InputMediaDocument
│ │ ├── InputMediaVenue
│ │ ├── InputMediaPhotoExternal
│ │ ├── InputMediaDocumentExternal
│ │ ├── InputMediaGame
│ │ ├── InputMediaInvoice
│ │ ├── InputMediaGeoLive
│ │ ├── InputMediaPoll
│ │ ├── InputMediaDice
│ │ ├── InputMediaStory
│ │ ├── InputMediaWebPage
│ │ ├── InputMediaPaidMedia
│ │ ├── InputMediaTodo
│ │ └── InputMediaStakeDice
│ ├── InputMediaDice
│ │ └── emoticonstring
│ ├── InputMediaStory
│ │ ├── peerInputPeer
│ │ │ ├── InputPeerEmpty
│ │ │ ├── InputPeerSelf
│ │ │ ├── InputPeerChat
│ │ │ ├── InputPeerUser
│ │ │ ├── InputPeerChannel
│ │ │ ├── InputPeerUserFromMessage
│ │ │ └── InputPeerChannelFromMessage
│ │ └── idint
│ ├── InputMediaWebPage
│ │ ├── force_large_mediatrue (optional)
│ │ ├── force_small_mediatrue (optional)
│ │ ├── optionaltrue (optional)
│ │ └── urlstring
│ ├── InputMediaPaidMedia
│ │ ├── stars_amountlong
│ │ ├── extended_mediaVector < InputMedia >
│ │ │ ├── InputMediaEmpty
│ │ │ ├── InputMediaUploadedPhoto
│ │ │ │ ├── spoilertrue (optional)
│ │ │ │ ├── live_phototrue (optional)
│ │ │ │ ├── fileInputFile
│ │ │ │ │ ├── InputFile
│ │ │ │ │ ├── InputFileBig
│ │ │ │ │ └── InputFileStoryDocument
│ │ │ │ ├── stickersVector < InputDocument > (optional)
│ │ │ │ │ ├── InputDocumentEmpty
│ │ │ │ │ └── InputDocument
│ │ │ │ ├── ttl_secondsint (optional)
│ │ │ │ └── videoInputDocument (optional)
│ │ │ │ ├── InputDocumentEmpty
│ │ │ │ └── InputDocument
│ │ │ ├── InputMediaPhoto
│ │ │ │ ├── spoilertrue (optional)
│ │ │ │ ├── live_phototrue (optional)
│ │ │ │ ├── idInputPhoto
│ │ │ │ │ ├── InputPhotoEmpty
│ │ │ │ │ └── InputPhoto
│ │ │ │ ├── ttl_secondsint (optional)
│ │ │ │ └── videoInputDocument (optional)
│ │ │ │ ├── InputDocumentEmpty
│ │ │ │ └── InputDocument
│ │ │ ├── InputMediaGeoPoint
│ │ │ │ └── geo_pointInputGeoPoint
│ │ │ │ ├── InputGeoPointEmpty
│ │ │ │ └── InputGeoPoint
│ │ │ ├── InputMediaContact
│ │ │ │ ├── phone_numberstring
│ │ │ │ ├── first_namestring
│ │ │ │ ├── last_namestring
│ │ │ │ └── vcardstring
│ │ │ ├── InputMediaUploadedDocument
│ │ │ │ ├── nosound_videotrue (optional)
│ │ │ │ ├── force_filetrue (optional)
│ │ │ │ ├── spoilertrue (optional)
│ │ │ │ ├── fileInputFile
│ │ │ │ │ ├── InputFile
│ │ │ │ │ ├── InputFileBig
│ │ │ │ │ └── InputFileStoryDocument
│ │ │ │ ├── thumbInputFile (optional)
│ │ │ │ │ ├── InputFile
│ │ │ │ │ ├── InputFileBig
│ │ │ │ │ └── InputFileStoryDocument
│ │ │ │ ├── mime_typestring
│ │ │ │ ├── attributesVector < DocumentAttribute >
│ │ │ │ │ ├── DocumentAttributeImageSize
│ │ │ │ │ ├── DocumentAttributeAnimated
│ │ │ │ │ ├── DocumentAttributeSticker
│ │ │ │ │ ├── DocumentAttributeVideo
│ │ │ │ │ ├── DocumentAttributeAudio
│ │ │ │ │ ├── DocumentAttributeFilename
│ │ │ │ │ ├── DocumentAttributeHasStickers
│ │ │ │ │ └── DocumentAttributeCustomEmoji
│ │ │ │ ├── stickersVector < InputDocument > (optional)
│ │ │ │ │ ├── InputDocumentEmpty
│ │ │ │ │ └── InputDocument
│ │ │ │ ├── video_coverInputPhoto (optional)
│ │ │ │ │ ├── InputPhotoEmpty
│ │ │ │ │ └── InputPhoto
│ │ │ │ ├── video_timestampint (optional)
│ │ │ │ └── ttl_secondsint (optional)
│ │ │ ├── InputMediaDocument
│ │ │ │ ├── spoilertrue (optional)
│ │ │ │ ├── idInputDocument
│ │ │ │ │ ├── InputDocumentEmpty
│ │ │ │ │ └── InputDocument
│ │ │ │ ├── video_coverInputPhoto (optional)
│ │ │ │ │ ├── InputPhotoEmpty
│ │ │ │ │ └── InputPhoto
│ │ │ │ ├── video_timestampint (optional)
│ │ │ │ ├── ttl_secondsint (optional)
│ │ │ │ └── querystring (optional)
│ │ │ ├── InputMediaVenue
│ │ │ │ ├── geo_pointInputGeoPoint
│ │ │ │ │ ├── InputGeoPointEmpty
│ │ │ │ │ └── InputGeoPoint
│ │ │ │ ├── titlestring
│ │ │ │ ├── addressstring
│ │ │ │ ├── providerstring
│ │ │ │ ├── venue_idstring
│ │ │ │ └── venue_typestring
│ │ │ ├── InputMediaPhotoExternal
│ │ │ │ ├── spoilertrue (optional)
│ │ │ │ ├── urlstring
│ │ │ │ └── ttl_secondsint (optional)
│ │ │ ├── InputMediaDocumentExternal
│ │ │ │ ├── spoilertrue (optional)
│ │ │ │ ├── urlstring
│ │ │ │ ├── ttl_secondsint (optional)
│ │ │ │ ├── video_coverInputPhoto (optional)
│ │ │ │ │ ├── InputPhotoEmpty
│ │ │ │ │ └── InputPhoto
│ │ │ │ └── video_timestampint (optional)
│ │ │ ├── InputMediaGame
│ │ │ │ └── idInputGame
│ │ │ │ ├── InputGameID
│ │ │ │ └── InputGameShortName
│ │ │ ├── InputMediaInvoice
│ │ │ │ ├── titlestring
│ │ │ │ ├── descriptionstring
│ │ │ │ ├── photoInputWebDocument (optional)
│ │ │ │ │ └── InputWebDocument
│ │ │ │ ├── invoiceInvoice
│ │ │ │ │ └── Invoice
│ │ │ │ ├── payloadbytes
│ │ │ │ ├── providerstring (optional)
│ │ │ │ ├── provider_dataDataJSON
│ │ │ │ │ └── DataJSON
│ │ │ │ ├── start_paramstring (optional)
│ │ │ │ └── extended_mediaInputMedia (optional)
│ │ │ │ ├── InputMediaEmpty
│ │ │ │ ├── InputMediaUploadedPhoto
│ │ │ │ ├── InputMediaPhoto
│ │ │ │ ├── InputMediaGeoPoint
│ │ │ │ ├── InputMediaContact
│ │ │ │ ├── InputMediaUploadedDocument
│ │ │ │ ├── InputMediaDocument
│ │ │ │ ├── InputMediaVenue
│ │ │ │ ├── InputMediaPhotoExternal
│ │ │ │ ├── InputMediaDocumentExternal
│ │ │ │ ├── InputMediaGame
│ │ │ │ ├── InputMediaInvoice
│ │ │ │ ├── InputMediaGeoLive
│ │ │ │ ├── InputMediaPoll
│ │ │ │ ├── InputMediaDice
│ │ │ │ ├── InputMediaStory
│ │ │ │ ├── InputMediaWebPage
│ │ │ │ ├── InputMediaPaidMedia
│ │ │ │ ├── InputMediaTodo
│ │ │ │ └── InputMediaStakeDice
│ │ │ ├── InputMediaGeoLive
│ │ │ │ ├── stoppedtrue (optional)
│ │ │ │ ├── geo_pointInputGeoPoint
│ │ │ │ │ ├── InputGeoPointEmpty
│ │ │ │ │ └── InputGeoPoint
│ │ │ │ ├── headingint (optional)
│ │ │ │ ├── periodint (optional)
│ │ │ │ └── proximity_notification_radiusint (optional)
│ │ │ ├── InputMediaPoll
│ │ │ │ ├── pollPoll
│ │ │ │ │ └── Poll
│ │ │ │ ├── correct_answersVector < int > (optional)
│ │ │ │ ├── attached_mediaInputMedia (optional)
│ │ │ │ │ ├── InputMediaEmpty
│ │ │ │ │ ├── InputMediaUploadedPhoto
│ │ │ │ │ ├── InputMediaPhoto
│ │ │ │ │ ├── InputMediaGeoPoint
│ │ │ │ │ ├── InputMediaContact
│ │ │ │ │ ├── InputMediaUploadedDocument
│ │ │ │ │ ├── InputMediaDocument
│ │ │ │ │ ├── InputMediaVenue
│ │ │ │ │ ├── InputMediaPhotoExternal
│ │ │ │ │ ├── InputMediaDocumentExternal
│ │ │ │ │ ├── InputMediaGame
│ │ │ │ │ ├── InputMediaInvoice
│ │ │ │ │ ├── InputMediaGeoLive
│ │ │ │ │ ├── InputMediaPoll
│ │ │ │ │ ├── InputMediaDice
│ │ │ │ │ ├── InputMediaStory
│ │ │ │ │ ├── InputMediaWebPage
│ │ │ │ │ ├── InputMediaPaidMedia
│ │ │ │ │ ├── InputMediaTodo
│ │ │ │ │ └── InputMediaStakeDice
│ │ │ │ ├── solutionstring (optional)
│ │ │ │ ├── solution_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
│ │ │ │ │ ├── MessageEntityDiffInsert
│ │ │ │ │ ├── MessageEntityDiffReplace
│ │ │ │ │ └── MessageEntityDiffDelete
│ │ │ │ └── solution_mediaInputMedia (optional)
│ │ │ │ ├── InputMediaEmpty
│ │ │ │ ├── InputMediaUploadedPhoto
│ │ │ │ ├── InputMediaPhoto
│ │ │ │ ├── InputMediaGeoPoint
│ │ │ │ ├── InputMediaContact
│ │ │ │ ├── InputMediaUploadedDocument
│ │ │ │ ├── InputMediaDocument
│ │ │ │ ├── InputMediaVenue
│ │ │ │ ├── InputMediaPhotoExternal
│ │ │ │ ├── InputMediaDocumentExternal
│ │ │ │ ├── InputMediaGame
│ │ │ │ ├── InputMediaInvoice
│ │ │ │ ├── InputMediaGeoLive
│ │ │ │ ├── InputMediaPoll
│ │ │ │ ├── InputMediaDice
│ │ │ │ ├── InputMediaStory
│ │ │ │ ├── InputMediaWebPage
│ │ │ │ ├── InputMediaPaidMedia
│ │ │ │ ├── InputMediaTodo
│ │ │ │ └── InputMediaStakeDice
│ │ │ ├── InputMediaDice
│ │ │ │ └── emoticonstring
│ │ │ ├── InputMediaStory
│ │ │ │ ├── peerInputPeer
│ │ │ │ │ ├── InputPeerEmpty
│ │ │ │ │ ├── InputPeerSelf
│ │ │ │ │ ├── InputPeerChat
│ │ │ │ │ ├── InputPeerUser
│ │ │ │ │ ├── InputPeerChannel
│ │ │ │ │ ├── InputPeerUserFromMessage
│ │ │ │ │ └── InputPeerChannelFromMessage
│ │ │ │ └── idint
│ │ │ ├── InputMediaWebPage
│ │ │ │ ├── force_large_mediatrue (optional)
│ │ │ │ ├── force_small_mediatrue (optional)
│ │ │ │ ├── optionaltrue (optional)
│ │ │ │ └── urlstring
│ │ │ ├── InputMediaPaidMedia
│ │ │ │ ├── stars_amountlong
│ │ │ │ ├── extended_mediaVector < InputMedia >
│ │ │ │ │ ├── InputMediaEmpty
│ │ │ │ │ ├── InputMediaUploadedPhoto
│ │ │ │ │ ├── InputMediaPhoto
│ │ │ │ │ ├── InputMediaGeoPoint
│ │ │ │ │ ├── InputMediaContact
│ │ │ │ │ ├── InputMediaUploadedDocument
│ │ │ │ │ ├── InputMediaDocument
│ │ │ │ │ ├── InputMediaVenue
│ │ │ │ │ ├── InputMediaPhotoExternal
│ │ │ │ │ ├── InputMediaDocumentExternal
│ │ │ │ │ ├── InputMediaGame
│ │ │ │ │ ├── InputMediaInvoice
│ │ │ │ │ ├── InputMediaGeoLive
│ │ │ │ │ ├── InputMediaPoll
│ │ │ │ │ ├── InputMediaDice
│ │ │ │ │ ├── InputMediaStory
│ │ │ │ │ ├── InputMediaWebPage
│ │ │ │ │ ├── InputMediaPaidMedia
│ │ │ │ │ ├── InputMediaTodo
│ │ │ │ │ └── InputMediaStakeDice
│ │ │ │ └── payloadstring (optional)
│ │ │ ├── InputMediaTodo
│ │ │ │ └── todoTodoList
│ │ │ │ └── TodoList
│ │ │ └── InputMediaStakeDice
│ │ │ ├── game_hashstring
│ │ │ ├── ton_amountlong
│ │ │ └── client_seedbytes
│ │ └── payloadstring (optional)
│ ├── InputMediaTodo
│ │ └── todoTodoList
│ │ └── TodoList
│ │ ├── others_can_appendtrue (optional)
│ │ ├── others_can_completetrue (optional)
│ │ ├── titleTextWithEntities
│ │ │ └── TextWithEntities
│ │ └── listVector < TodoItem >
│ │ └── TodoItem
│ └── InputMediaStakeDice
│ ├── game_hashstring
│ ├── ton_amountlong
│ └── client_seedbytes
├── solutionstring (optional)
├── solution_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
│ │ ├── offsetint
│ │ └── lengthint
│ │ ├── offsetint
│ │ ├── lengthint
│ │ └── old_textstring
│ ├── offsetint
│ └── lengthint
└── solution_mediaInputMedia (optional)
├── InputMediaEmpty
│ ├── spoilertrue (optional)
│ ├── live_phototrue (optional)
│ ├── fileInputFile
│ │ ├── InputFile
│ │ ├── InputFileBig
│ │ └── InputFileStoryDocument
│ ├── stickersVector < InputDocument > (optional)
│ │ ├── InputDocumentEmpty
│ │ └── InputDocument
│ │ ├── idlong
│ │ ├── access_hashlong
│ │ └── file_referencebytes
│ ├── ttl_secondsint (optional)
│ └── videoInputDocument (optional)
│ ├── InputDocumentEmpty
│ └── InputDocument
│ ├── idlong
│ ├── access_hashlong
│ └── file_referencebytes
├── InputMediaPhoto
│ ├── spoilertrue (optional)
│ ├── live_phototrue (optional)
│ ├── idInputPhoto
│ │ ├── InputPhotoEmpty
│ │ └── InputPhoto
│ │ ├── idlong
│ │ ├── access_hashlong
│ │ └── file_referencebytes
│ ├── ttl_secondsint (optional)
│ └── videoInputDocument (optional)
│ ├── InputDocumentEmpty
│ └── InputDocument
│ ├── idlong
│ ├── access_hashlong
│ └── file_referencebytes
│ └── geo_pointInputGeoPoint
│ ├── InputGeoPointEmpty
│ └── InputGeoPoint
│ ├── latdouble
│ ├── longdouble
│ └── accuracy_radiusint (optional)
│ ├── phone_numberstring
│ ├── first_namestring
│ ├── last_namestring
│ └── vcardstring
│ ├── nosound_videotrue (optional)
│ ├── force_filetrue (optional)
│ ├── spoilertrue (optional)
│ ├── fileInputFile
│ │ ├── InputFile
│ │ ├── InputFileBig
│ │ └── InputFileStoryDocument
│ ├── thumbInputFile (optional)
│ │ ├── InputFile
│ │ ├── InputFileBig
│ │ └── InputFileStoryDocument
│ ├── mime_typestring
│ ├── attributesVector < DocumentAttribute >
│ │ ├── DocumentAttributeImageSize
│ │ │ ├── wint
│ │ │ └── hint
│ │ ├── DocumentAttributeAnimated
│ │ ├── DocumentAttributeSticker
│ │ │ ├── masktrue (optional)
│ │ │ ├── altstring
│ │ │ ├── stickersetInputStickerSet
│ │ │ │ ├── InputStickerSetEmpty
│ │ │ │ ├── InputStickerSetID
│ │ │ │ ├── InputStickerSetShortName
│ │ │ │ ├── InputStickerSetAnimatedEmoji
│ │ │ │ ├── InputStickerSetDice
│ │ │ │ ├── InputStickerSetAnimatedEmojiAnimations
│ │ │ │ ├── InputStickerSetPremiumGifts
│ │ │ │ ├── InputStickerSetEmojiGenericAnimations
│ │ │ │ ├── InputStickerSetEmojiDefaultStatuses
│ │ │ │ ├── InputStickerSetEmojiDefaultTopicIcons
│ │ │ │ └── InputStickerSetTonGifts
│ │ │ └── mask_coordsMaskCoords (optional)
│ │ │ └── MaskCoords
│ │ ├── DocumentAttributeVideo
│ │ │ ├── round_messagetrue (optional)
│ │ │ ├── supports_streamingtrue (optional)
│ │ │ ├── nosoundtrue (optional)
│ │ │ ├── durationdouble
│ │ │ ├── wint
│ │ │ ├── hint
│ │ │ ├── preload_prefix_sizeint (optional)
│ │ │ ├── video_start_tsdouble (optional)
│ │ │ └── video_codecstring (optional)
│ │ ├── DocumentAttributeAudio
│ │ │ ├── voicetrue (optional)
│ │ │ ├── durationint
│ │ │ ├── titlestring (optional)
│ │ │ ├── performerstring (optional)
│ │ │ └── waveformbytes (optional)
│ │ ├── DocumentAttributeFilename
│ │ │ └── file_namestring
│ │ ├── freetrue (optional)
│ │ ├── text_colortrue (optional)
│ │ ├── altstring
│ │ └── stickersetInputStickerSet
│ │ ├── InputStickerSetEmpty
│ │ ├── InputStickerSetID
│ │ ├── InputStickerSetShortName
│ │ ├── InputStickerSetDice
│ │ ├── InputStickerSetPremiumGifts
│ │ └── InputStickerSetTonGifts
│ ├── stickersVector < InputDocument > (optional)
│ │ ├── InputDocumentEmpty
│ │ └── InputDocument
│ │ ├── idlong
│ │ ├── access_hashlong
│ │ └── file_referencebytes
│ ├── video_coverInputPhoto (optional)
│ │ ├── InputPhotoEmpty
│ │ └── InputPhoto
│ │ ├── idlong
│ │ ├── access_hashlong
│ │ └── file_referencebytes
│ ├── video_timestampint (optional)
│ └── ttl_secondsint (optional)
│ ├── spoilertrue (optional)
│ ├── idInputDocument
│ │ ├── InputDocumentEmpty
│ │ └── InputDocument
│ │ ├── idlong
│ │ ├── access_hashlong
│ │ └── file_referencebytes
│ ├── video_coverInputPhoto (optional)
│ │ ├── InputPhotoEmpty
│ │ └── InputPhoto
│ │ ├── idlong
│ │ ├── access_hashlong
│ │ └── file_referencebytes
│ ├── video_timestampint (optional)
│ ├── ttl_secondsint (optional)
│ └── querystring (optional)
├── InputMediaVenue
│ ├── geo_pointInputGeoPoint
│ │ ├── InputGeoPointEmpty
│ │ └── InputGeoPoint
│ │ ├── latdouble
│ │ ├── longdouble
│ │ └── accuracy_radiusint (optional)
│ ├── titlestring
│ ├── addressstring
│ ├── providerstring
│ ├── venue_idstring
│ └── venue_typestring
│ ├── spoilertrue (optional)
│ ├── urlstring
│ └── ttl_secondsint (optional)
│ ├── spoilertrue (optional)
│ ├── urlstring
│ ├── ttl_secondsint (optional)
│ ├── video_coverInputPhoto (optional)
│ │ ├── InputPhotoEmpty
│ │ └── InputPhoto
│ │ ├── idlong
│ │ ├── access_hashlong
│ │ └── file_referencebytes
│ └── video_timestampint (optional)
├── InputMediaGame
│ └── idInputGame
│ ├── InputGameID
│ │ ├── idlong
│ │ └── access_hashlong
│ └── InputGameShortName
│ ├── bot_idInputUser
│ │ ├── InputUserEmpty
│ │ ├── InputUserSelf
│ │ ├── InputUser
│ │ └── InputUserFromMessage
│ └── short_namestring
│ ├── titlestring
│ ├── descriptionstring
│ ├── photoInputWebDocument (optional)
│ │ └── InputWebDocument
│ │ ├── urlstring
│ │ ├── sizeint
│ │ ├── mime_typestring
│ │ └── attributesVector < DocumentAttribute >
│ │ ├── DocumentAttributeImageSize
│ │ ├── DocumentAttributeAnimated
│ │ ├── DocumentAttributeSticker
│ │ ├── DocumentAttributeVideo
│ │ ├── DocumentAttributeAudio
│ │ ├── DocumentAttributeFilename
│ ├── invoiceInvoice
│ │ └── Invoice
│ │ ├── testtrue (optional)
│ │ ├── name_requestedtrue (optional)
│ │ ├── phone_requestedtrue (optional)
│ │ ├── email_requestedtrue (optional)
│ │ ├── shipping_address_requestedtrue (optional)
│ │ ├── flexibletrue (optional)
│ │ ├── phone_to_providertrue (optional)
│ │ ├── email_to_providertrue (optional)
│ │ ├── recurringtrue (optional)
│ │ ├── currencystring
│ │ ├── pricesVector < LabeledPrice >
│ │ │ └── LabeledPrice
│ │ ├── max_tip_amountlong (optional)
│ │ ├── suggested_tip_amountsVector < long > (optional)
│ │ ├── terms_urlstring (optional)
│ │ └── subscription_periodint (optional)
│ ├── payloadbytes
│ ├── providerstring (optional)
│ ├── provider_dataDataJSON
│ │ └── DataJSON
│ │ └── datastring
│ ├── start_paramstring (optional)
│ └── extended_mediaInputMedia (optional)
│ ├── InputMediaEmpty
│ ├── InputMediaPhoto
│ ├── InputMediaGeoPoint
│ ├── InputMediaContact
│ ├── InputMediaDocument
│ ├── InputMediaVenue
│ ├── InputMediaGame
│ ├── InputMediaInvoice
│ ├── InputMediaGeoLive
│ ├── InputMediaPoll
│ ├── InputMediaDice
│ ├── InputMediaStory
│ ├── InputMediaWebPage
│ ├── InputMediaPaidMedia
│ ├── InputMediaTodo
│ └── InputMediaStakeDice
│ ├── stoppedtrue (optional)
│ ├── geo_pointInputGeoPoint
│ │ ├── InputGeoPointEmpty
│ │ └── InputGeoPoint
│ │ ├── latdouble
│ │ ├── longdouble
│ │ └── accuracy_radiusint (optional)
│ ├── headingint (optional)
│ ├── periodint (optional)
│ └── proximity_notification_radiusint (optional)
├── InputMediaPoll
│ ├── pollPoll
│ │ └── Poll
│ │ ├── idlong
│ │ ├── closedtrue (optional)
│ │ ├── public_voterstrue (optional)
│ │ ├── multiple_choicetrue (optional)
│ │ ├── quiztrue (optional)
│ │ ├── open_answerstrue (optional)
│ │ ├── revoting_disabledtrue (optional)
│ │ ├── shuffle_answerstrue (optional)
│ │ ├── hide_results_until_closetrue (optional)
│ │ ├── creatortrue (optional)
│ │ ├── questionTextWithEntities
│ │ │ └── TextWithEntities
│ │ ├── answersVector < PollAnswer >
│ │ │ ├── PollAnswer
│ │ │ └── InputPollAnswer
│ │ ├── close_periodint (optional)
│ │ ├── close_dateint (optional)
│ │ └── hashlong
│ ├── correct_answersVector < int > (optional)
│ ├── attached_mediaInputMedia (optional)
│ │ ├── InputMediaEmpty
│ │ ├── InputMediaUploadedPhoto
│ │ ├── InputMediaPhoto
│ │ ├── InputMediaGeoPoint
│ │ ├── InputMediaContact
│ │ ├── InputMediaUploadedDocument
│ │ ├── InputMediaDocument
│ │ ├── InputMediaVenue
│ │ ├── InputMediaPhotoExternal
│ │ ├── InputMediaDocumentExternal
│ │ ├── InputMediaGame
│ │ ├── InputMediaInvoice
│ │ ├── InputMediaGeoLive
│ │ ├── InputMediaPoll
│ │ ├── InputMediaDice
│ │ ├── InputMediaStory
│ │ ├── InputMediaWebPage
│ │ ├── InputMediaPaidMedia
│ │ ├── InputMediaTodo
│ │ └── InputMediaStakeDice
│ ├── solutionstring (optional)
│ ├── solution_entitiesVector < MessageEntity > (optional)
│ │ ├── MessageEntityUnknown
│ │ │ ├── offsetint
│ │ │ └── lengthint
│ │ ├── MessageEntityMention
│ │ │ ├── offsetint
│ │ │ └── lengthint
│ │ ├── MessageEntityHashtag
│ │ │ ├── offsetint
│ │ │ └── lengthint
│ │ ├── MessageEntityBotCommand
│ │ │ ├── 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
│ │ ├── MessageEntityMentionName
│ │ │ ├── offsetint
│ │ │ ├── lengthint
│ │ │ └── user_idlong
│ │ │ ├── offsetint
│ │ │ ├── lengthint
│ │ │ └── user_idInputUser
│ │ │ ├── InputUserEmpty
│ │ │ ├── InputUserSelf
│ │ │ ├── InputUser
│ │ │ └── InputUserFromMessage
│ │ ├── MessageEntityPhone
│ │ │ ├── offsetint
│ │ │ └── lengthint
│ │ ├── MessageEntityCashtag
│ │ │ ├── offsetint
│ │ │ └── lengthint
│ │ ├── MessageEntityUnderline
│ │ │ ├── offsetint
│ │ │ └── lengthint
│ │ ├── MessageEntityStrike
│ │ │ ├── offsetint
│ │ │ └── lengthint
│ │ ├── MessageEntityBankCard
│ │ │ ├── offsetint
│ │ │ └── lengthint
│ │ ├── MessageEntitySpoiler
│ │ │ ├── offsetint
│ │ │ └── lengthint
│ │ ├── MessageEntityCustomEmoji
│ │ │ ├── offsetint
│ │ │ ├── lengthint
│ │ │ └── document_idlong
│ │ ├── MessageEntityBlockquote
│ │ │ ├── collapsedtrue (optional)
│ │ │ ├── offsetint
│ │ │ └── lengthint
│ │ ├── MessageEntityFormattedDate
│ │ │ ├── relativetrue (optional)
│ │ │ ├── short_timetrue (optional)
│ │ │ ├── long_timetrue (optional)
│ │ │ ├── short_datetrue (optional)
│ │ │ ├── long_datetrue (optional)
│ │ │ ├── day_of_weektrue (optional)
│ │ │ ├── offsetint
│ │ │ ├── lengthint
│ │ │ └── dateint
│ │ ├── MessageEntityDiffInsert
│ │ │ ├── offsetint
│ │ │ └── lengthint
│ │ ├── MessageEntityDiffReplace
│ │ │ ├── offsetint
│ │ │ ├── lengthint
│ │ │ └── old_textstring
│ │ └── MessageEntityDiffDelete
│ │ ├── offsetint
│ │ └── lengthint
│ └── solution_mediaInputMedia (optional)
│ ├── InputMediaEmpty
│ ├── InputMediaPhoto
│ ├── InputMediaGeoPoint
│ ├── InputMediaContact
│ ├── InputMediaDocument
│ ├── InputMediaVenue
│ ├── InputMediaGame
│ ├── InputMediaInvoice
│ ├── InputMediaGeoLive
│ ├── InputMediaPoll
│ ├── InputMediaDice
│ ├── InputMediaStory
│ ├── InputMediaWebPage
│ ├── InputMediaPaidMedia
│ ├── InputMediaTodo
│ └── InputMediaStakeDice
├── InputMediaDice
│ └── emoticonstring
├── InputMediaStory
│ ├── peerInputPeer
│ │ ├── InputPeerEmpty
│ │ ├── InputPeerSelf
│ │ ├── InputPeerChat
│ │ ├── InputPeerUser
│ │ ├── InputPeerChannel
│ │ ├── InputPeerUserFromMessage
│ │ └── InputPeerChannelFromMessage
│ └── idint
│ ├── force_large_mediatrue (optional)
│ ├── force_small_mediatrue (optional)
│ ├── optionaltrue (optional)
│ └── urlstring
│ ├── stars_amountlong
│ ├── extended_mediaVector < InputMedia >
│ │ ├── InputMediaEmpty
│ │ ├── InputMediaUploadedPhoto
│ │ │ ├── spoilertrue (optional)
│ │ │ ├── live_phototrue (optional)
│ │ │ ├── fileInputFile
│ │ │ │ ├── InputFile
│ │ │ │ ├── InputFileBig
│ │ │ │ └── InputFileStoryDocument
│ │ │ ├── stickersVector < InputDocument > (optional)
│ │ │ │ ├── InputDocumentEmpty
│ │ │ │ └── InputDocument
│ │ │ ├── ttl_secondsint (optional)
│ │ │ └── videoInputDocument (optional)
│ │ │ ├── InputDocumentEmpty
│ │ │ └── InputDocument
│ │ ├── InputMediaPhoto
│ │ │ ├── spoilertrue (optional)
│ │ │ ├── live_phototrue (optional)
│ │ │ ├── idInputPhoto
│ │ │ │ ├── InputPhotoEmpty
│ │ │ │ └── InputPhoto
│ │ │ ├── ttl_secondsint (optional)
│ │ │ └── videoInputDocument (optional)
│ │ │ ├── InputDocumentEmpty
│ │ │ └── InputDocument
│ │ ├── InputMediaGeoPoint
│ │ │ └── geo_pointInputGeoPoint
│ │ │ ├── InputGeoPointEmpty
│ │ │ └── InputGeoPoint
│ │ ├── InputMediaContact
│ │ │ ├── phone_numberstring
│ │ │ ├── first_namestring
│ │ │ ├── last_namestring
│ │ │ └── vcardstring
│ │ ├── InputMediaUploadedDocument
│ │ │ ├── nosound_videotrue (optional)
│ │ │ ├── force_filetrue (optional)
│ │ │ ├── spoilertrue (optional)
│ │ │ ├── fileInputFile
│ │ │ │ ├── InputFile
│ │ │ │ ├── InputFileBig
│ │ │ │ └── InputFileStoryDocument
│ │ │ ├── thumbInputFile (optional)
│ │ │ │ ├── InputFile
│ │ │ │ ├── InputFileBig
│ │ │ │ └── InputFileStoryDocument
│ │ │ ├── mime_typestring
│ │ │ ├── attributesVector < DocumentAttribute >
│ │ │ │ ├── DocumentAttributeImageSize
│ │ │ │ ├── DocumentAttributeAnimated
│ │ │ │ ├── DocumentAttributeSticker
│ │ │ │ ├── DocumentAttributeVideo
│ │ │ │ ├── DocumentAttributeAudio
│ │ │ │ ├── DocumentAttributeFilename
│ │ │ │ ├── DocumentAttributeHasStickers
│ │ │ │ └── DocumentAttributeCustomEmoji
│ │ │ ├── stickersVector < InputDocument > (optional)
│ │ │ │ ├── InputDocumentEmpty
│ │ │ │ └── InputDocument
│ │ │ ├── video_coverInputPhoto (optional)
│ │ │ │ ├── InputPhotoEmpty
│ │ │ │ └── InputPhoto
│ │ │ ├── video_timestampint (optional)
│ │ │ └── ttl_secondsint (optional)
│ │ ├── InputMediaDocument
│ │ │ ├── spoilertrue (optional)
│ │ │ ├── idInputDocument
│ │ │ │ ├── InputDocumentEmpty
│ │ │ │ └── InputDocument
│ │ │ ├── video_coverInputPhoto (optional)
│ │ │ │ ├── InputPhotoEmpty
│ │ │ │ └── InputPhoto
│ │ │ ├── video_timestampint (optional)
│ │ │ ├── ttl_secondsint (optional)
│ │ │ └── querystring (optional)
│ │ ├── InputMediaVenue
│ │ │ ├── geo_pointInputGeoPoint
│ │ │ │ ├── InputGeoPointEmpty
│ │ │ │ └── InputGeoPoint
│ │ │ ├── titlestring
│ │ │ ├── addressstring
│ │ │ ├── providerstring
│ │ │ ├── venue_idstring
│ │ │ └── venue_typestring
│ │ ├── InputMediaPhotoExternal
│ │ │ ├── spoilertrue (optional)
│ │ │ ├── urlstring
│ │ │ └── ttl_secondsint (optional)
│ │ ├── InputMediaDocumentExternal
│ │ │ ├── spoilertrue (optional)
│ │ │ ├── urlstring
│ │ │ ├── ttl_secondsint (optional)
│ │ │ ├── video_coverInputPhoto (optional)
│ │ │ │ ├── InputPhotoEmpty
│ │ │ │ └── InputPhoto
│ │ │ └── video_timestampint (optional)
│ │ ├── InputMediaGame
│ │ │ └── idInputGame
│ │ │ ├── InputGameID
│ │ │ └── InputGameShortName
│ │ ├── InputMediaInvoice
│ │ │ ├── titlestring
│ │ │ ├── descriptionstring
│ │ │ ├── photoInputWebDocument (optional)
│ │ │ │ └── InputWebDocument
│ │ │ ├── invoiceInvoice
│ │ │ │ └── Invoice
│ │ │ ├── payloadbytes
│ │ │ ├── providerstring (optional)
│ │ │ ├── provider_dataDataJSON
│ │ │ │ └── DataJSON
│ │ │ ├── start_paramstring (optional)
│ │ │ └── extended_mediaInputMedia (optional)
│ │ │ ├── InputMediaEmpty
│ │ │ ├── InputMediaUploadedPhoto
│ │ │ ├── InputMediaPhoto
│ │ │ ├── InputMediaGeoPoint
│ │ │ ├── InputMediaContact
│ │ │ ├── InputMediaUploadedDocument
│ │ │ ├── InputMediaDocument
│ │ │ ├── InputMediaVenue
│ │ │ ├── InputMediaPhotoExternal
│ │ │ ├── InputMediaDocumentExternal
│ │ │ ├── InputMediaGame
│ │ │ ├── InputMediaInvoice
│ │ │ ├── InputMediaGeoLive
│ │ │ ├── InputMediaPoll
│ │ │ ├── InputMediaDice
│ │ │ ├── InputMediaStory
│ │ │ ├── InputMediaWebPage
│ │ │ ├── InputMediaPaidMedia
│ │ │ ├── InputMediaTodo
│ │ │ └── InputMediaStakeDice
│ │ ├── InputMediaGeoLive
│ │ │ ├── stoppedtrue (optional)
│ │ │ ├── geo_pointInputGeoPoint
│ │ │ │ ├── InputGeoPointEmpty
│ │ │ │ └── InputGeoPoint
│ │ │ ├── headingint (optional)
│ │ │ ├── periodint (optional)
│ │ │ └── proximity_notification_radiusint (optional)
│ │ ├── InputMediaPoll
│ │ │ ├── pollPoll
│ │ │ │ └── Poll
│ │ │ ├── correct_answersVector < int > (optional)
│ │ │ ├── attached_mediaInputMedia (optional)
│ │ │ │ ├── InputMediaEmpty
│ │ │ │ ├── InputMediaUploadedPhoto
│ │ │ │ ├── InputMediaPhoto
│ │ │ │ ├── InputMediaGeoPoint
│ │ │ │ ├── InputMediaContact
│ │ │ │ ├── InputMediaUploadedDocument
│ │ │ │ ├── InputMediaDocument
│ │ │ │ ├── InputMediaVenue
│ │ │ │ ├── InputMediaPhotoExternal
│ │ │ │ ├── InputMediaDocumentExternal
│ │ │ │ ├── InputMediaGame
│ │ │ │ ├── InputMediaInvoice
│ │ │ │ ├── InputMediaGeoLive
│ │ │ │ ├── InputMediaPoll
│ │ │ │ ├── InputMediaDice
│ │ │ │ ├── InputMediaStory
│ │ │ │ ├── InputMediaWebPage
│ │ │ │ ├── InputMediaPaidMedia
│ │ │ │ ├── InputMediaTodo
│ │ │ │ └── InputMediaStakeDice
│ │ │ ├── solutionstring (optional)
│ │ │ ├── solution_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
│ │ │ │ ├── MessageEntityDiffInsert
│ │ │ │ ├── MessageEntityDiffReplace
│ │ │ │ └── MessageEntityDiffDelete
│ │ │ └── solution_mediaInputMedia (optional)
│ │ │ ├── InputMediaEmpty
│ │ │ ├── InputMediaUploadedPhoto
│ │ │ ├── InputMediaPhoto
│ │ │ ├── InputMediaGeoPoint
│ │ │ ├── InputMediaContact
│ │ │ ├── InputMediaUploadedDocument
│ │ │ ├── InputMediaDocument
│ │ │ ├── InputMediaVenue
│ │ │ ├── InputMediaPhotoExternal
│ │ │ ├── InputMediaDocumentExternal
│ │ │ ├── InputMediaGame
│ │ │ ├── InputMediaInvoice
│ │ │ ├── InputMediaGeoLive
│ │ │ ├── InputMediaPoll
│ │ │ ├── InputMediaDice
│ │ │ ├── InputMediaStory
│ │ │ ├── InputMediaWebPage
│ │ │ ├── InputMediaPaidMedia
│ │ │ ├── InputMediaTodo
│ │ │ └── InputMediaStakeDice
│ │ ├── InputMediaDice
│ │ │ └── emoticonstring
│ │ ├── InputMediaStory
│ │ │ ├── peerInputPeer
│ │ │ │ ├── InputPeerEmpty
│ │ │ │ ├── InputPeerSelf
│ │ │ │ ├── InputPeerChat
│ │ │ │ ├── InputPeerUser
│ │ │ │ ├── InputPeerChannel
│ │ │ │ ├── InputPeerUserFromMessage
│ │ │ │ └── InputPeerChannelFromMessage
│ │ │ └── idint
│ │ ├── InputMediaWebPage
│ │ │ ├── force_large_mediatrue (optional)
│ │ │ ├── force_small_mediatrue (optional)
│ │ │ ├── optionaltrue (optional)
│ │ │ └── urlstring
│ │ ├── InputMediaPaidMedia
│ │ │ ├── stars_amountlong
│ │ │ ├── extended_mediaVector < InputMedia >
│ │ │ │ ├── InputMediaEmpty
│ │ │ │ ├── InputMediaUploadedPhoto
│ │ │ │ ├── InputMediaPhoto
│ │ │ │ ├── InputMediaGeoPoint
│ │ │ │ ├── InputMediaContact
│ │ │ │ ├── InputMediaUploadedDocument
│ │ │ │ ├── InputMediaDocument
│ │ │ │ ├── InputMediaVenue
│ │ │ │ ├── InputMediaPhotoExternal
│ │ │ │ ├── InputMediaDocumentExternal
│ │ │ │ ├── InputMediaGame
│ │ │ │ ├── InputMediaInvoice
│ │ │ │ ├── InputMediaGeoLive
│ │ │ │ ├── InputMediaPoll
│ │ │ │ ├── InputMediaDice
│ │ │ │ ├── InputMediaStory
│ │ │ │ ├── InputMediaWebPage
│ │ │ │ ├── InputMediaPaidMedia
│ │ │ │ ├── InputMediaTodo
│ │ │ │ └── InputMediaStakeDice
│ │ │ └── payloadstring (optional)
│ │ ├── InputMediaTodo
│ │ │ └── todoTodoList
│ │ │ └── TodoList
│ │ └── InputMediaStakeDice
│ │ ├── game_hashstring
│ │ ├── ton_amountlong
│ │ └── client_seedbytes
│ └── payloadstring (optional)
├── InputMediaTodo
│ └── todoTodoList
│ └── TodoList
│ ├── others_can_appendtrue (optional)
│ ├── others_can_completetrue (optional)
│ ├── titleTextWithEntities
│ │ └── TextWithEntities
│ └── listVector < TodoItem >
│ └── TodoItem
├── game_hashstring
├── ton_amountlong
└── client_seedbytes

Example

InputMediaPoll(
    poll=Poll(
        id=0,
        question=TextWithEntities(
            text="Open",
            entities=[
                    MessageEntityUnknown(
                        offset=0,
                        length=0
                    )
                ]
        ),
        answers=[
                PollAnswer(
                    text=TextWithEntities(
                        text="Open",
                        entities=[
                                MessageEntityUnknown(
                                    offset=0,
                                    length=0
                                )
                            ]
                    ),
                    option=b"data"
                )
            ],
        hash=0
    ),
)