messages.SendMedia

class pyrogram.raw.functions.messages.SendMedia

Send a media

Details:
  • Layer: 223

  • ID: 330E77F

Parameters:
  • peer (InputPeer) – Destination

  • media (InputMedia) – Attached media

  • message (str) – Caption

  • random_id (int 64-bit) – Random ID to avoid resending the same message

  • silent (bool, optional) – Send message silently (no notification should be triggered)

  • background (bool, optional) – Send message in background

  • clear_draft (bool, optional) – Clear the draft

  • noforwards (bool, optional) – Only for bots, disallows forwarding and saving of the messages, even if the destination chat doesn’t have content protection enabled

  • update_stickersets_order (bool, optional) – Whether to move used stickersets to top, see here for more info on this flag »

  • invert_media (bool, optional) – If set, any eventual webpage preview will be shown on top of the message instead of at the bottom.

  • allow_paid_floodskip (bool, optional) – Bots only: if set, allows sending up to 1000 messages per second, ignoring broadcasting limits for a fee of 0.1 Telegram Stars per message. The relevant Stars will be withdrawn from the bot’s balance.

  • reply_to (InputReplyTo, optional) – If set, indicates that the message should be sent in reply to the specified message or story.

  • reply_markup (ReplyMarkup, optional) – Reply markup for bot keyboards

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

  • schedule_date (int 32-bit, optional) – Scheduled message date for scheduled messages

  • schedule_repeat_period (int 32-bit, optional)

  • send_as (InputPeer, optional) – Send this message as the specified peer

  • quick_reply_shortcut (InputQuickReplyShortcut, optional) – Add the message to the specified quick reply shortcut », instead.

  • effect (int 64-bit, optional) – Specifies a message effect » to use for the message.

  • allow_paid_stars (int 64-bit, optional) – For paid messages », specifies the amount of Telegram Stars the user has agreed to pay in order to send the message.

  • suggested_post (SuggestedPost, optional) – Used to suggest a post to a channel, see here » for more info on the full flow.

Returns:

Updates

TL Schema

messages.sendMedia#330e77f
flags:#
silent:flags.5?true
background:flags.6?true
clear_draft:flags.7?true
noforwards:flags.14?true
update_stickersets_order:flags.15?true
invert_media:flags.16?true
allow_paid_floodskip:flags.19?true
peer:InputPeer
reply_to:flags.0?InputReplyTo
media:InputMedia
message:string
random_id:long
reply_markup:flags.2?ReplyMarkup
entities:flags.3?Vector<MessageEntity>
schedule_date:flags.10?int
schedule_repeat_period:flags.24?int
send_as:flags.13?InputPeer
quick_reply_shortcut:flags.17?InputQuickReplyShortcut
effect:flags.18?long
allow_paid_stars:flags.21?long
suggested_post:flags.22?SuggestedPost

= Updates

Parameter Tree

SendMedia
├── silenttrue (optional)
├── backgroundtrue (optional)
├── clear_drafttrue (optional)
├── noforwardstrue (optional)
├── update_stickersets_ordertrue (optional)
├── invert_mediatrue (optional)
├── allow_paid_floodskiptrue (optional)
├── peerInputPeer
│ ├── InputPeerEmpty
│ ├── InputPeerSelf
│ ├── InputPeerChat
│ │ └── chat_idlong
│ ├── InputPeerUser
│ │ ├── user_idlong
│ │ └── access_hashlong
│ ├── InputPeerChannel
│ │ ├── channel_idlong
│ │ └── access_hashlong
│ │ ├── peerInputPeer
│ │ │ ├── InputPeerEmpty
│ │ │ ├── InputPeerSelf
│ │ │ ├── InputPeerChat
│ │ │ ├── InputPeerUser
│ │ │ ├── InputPeerChannel
│ │ │ ├── InputPeerUserFromMessage
│ │ │ └── InputPeerChannelFromMessage
│ │ ├── msg_idint
│ │ └── user_idlong
│ ├── peerInputPeer
│ │ ├── InputPeerEmpty
│ │ ├── InputPeerSelf
│ │ ├── InputPeerChat
│ │ ├── InputPeerUser
│ │ ├── InputPeerChannel
│ │ ├── InputPeerUserFromMessage
│ │ └── InputPeerChannelFromMessage
│ ├── msg_idint
│ └── channel_idlong
├── reply_toInputReplyTo (optional)
│ ├── InputReplyToMessage
│ │ ├── reply_to_msg_idint
│ │ ├── top_msg_idint (optional)
│ │ ├── reply_to_peer_idInputPeer (optional)
│ │ │ ├── InputPeerEmpty
│ │ │ ├── InputPeerSelf
│ │ │ ├── InputPeerChat
│ │ │ ├── InputPeerUser
│ │ │ ├── InputPeerChannel
│ │ │ ├── InputPeerUserFromMessage
│ │ │ └── InputPeerChannelFromMessage
│ │ ├── quote_textstring (optional)
│ │ ├── quote_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
│ │ ├── quote_offsetint (optional)
│ │ ├── monoforum_peer_idInputPeer (optional)
│ │ │ ├── InputPeerEmpty
│ │ │ ├── InputPeerSelf
│ │ │ ├── InputPeerChat
│ │ │ ├── InputPeerUser
│ │ │ ├── InputPeerChannel
│ │ │ ├── InputPeerUserFromMessage
│ │ │ └── InputPeerChannelFromMessage
│ │ └── todo_item_idint (optional)
│ ├── InputReplyToStory
│ │ ├── peerInputPeer
│ │ │ ├── InputPeerEmpty
│ │ │ ├── InputPeerSelf
│ │ │ ├── InputPeerChat
│ │ │ ├── InputPeerUser
│ │ │ ├── InputPeerChannel
│ │ │ ├── InputPeerUserFromMessage
│ │ │ └── InputPeerChannelFromMessage
│ │ └── story_idint
│ └── InputReplyToMonoForum
│ └── monoforum_peer_idInputPeer
│ ├── InputPeerEmpty
│ ├── InputPeerSelf
│ ├── InputPeerChat
│ ├── InputPeerUser
│ ├── InputPeerChannel
├── mediaInputMedia
│ ├── InputMediaEmpty
│ │ ├── spoilertrue (optional)
│ │ ├── fileInputFile
│ │ │ ├── InputFile
│ │ │ ├── InputFileBig
│ │ │ └── InputFileStoryDocument
│ │ ├── stickersVector < InputDocument > (optional)
│ │ │ ├── InputDocumentEmpty
│ │ │ └── InputDocument
│ │ │ ├── idlong
│ │ │ ├── access_hashlong
│ │ │ └── file_referencebytes
│ │ └── ttl_secondsint (optional)
│ ├── InputMediaPhoto
│ │ ├── spoilertrue (optional)
│ │ ├── idInputPhoto
│ │ │ ├── InputPhotoEmpty
│ │ │ └── InputPhoto
│ │ │ ├── idlong
│ │ │ ├── access_hashlong
│ │ │ └── file_referencebytes
│ │ └── ttl_secondsint (optional)
│ ├── 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)
│ │ │ ├── questionTextWithEntities
│ │ │ │ └── TextWithEntities
│ │ │ ├── answersVector < PollAnswer >
│ │ │ │ └── PollAnswer
│ │ │ ├── close_periodint (optional)
│ │ │ └── close_dateint (optional)
│ │ ├── correct_answersVector < bytes > (optional)
│ │ ├── 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
│ ├── 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)
│ │ │ │ ├── fileInputFile
│ │ │ │ │ ├── InputFile
│ │ │ │ │ ├── InputFileBig
│ │ │ │ │ └── InputFileStoryDocument
│ │ │ │ ├── stickersVector < InputDocument > (optional)
│ │ │ │ │ ├── InputDocumentEmpty
│ │ │ │ │ └── InputDocument
│ │ │ │ └── ttl_secondsint (optional)
│ │ │ ├── InputMediaPhoto
│ │ │ │ ├── spoilertrue (optional)
│ │ │ │ ├── idInputPhoto
│ │ │ │ │ ├── InputPhotoEmpty
│ │ │ │ │ └── InputPhoto
│ │ │ │ └── ttl_secondsint (optional)
│ │ │ ├── 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 < bytes > (optional)
│ │ │ │ ├── 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
│ │ │ ├── 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
├── messagestring
├── random_idlong
├── reply_markupReplyMarkup (optional)
│ ├── ReplyKeyboardHide
│ │ └── selectivetrue (optional)
│ │ ├── single_usetrue (optional)
│ │ ├── selectivetrue (optional)
│ │ └── placeholderstring (optional)
│ ├── ReplyKeyboardMarkup
│ │ ├── resizetrue (optional)
│ │ ├── single_usetrue (optional)
│ │ ├── selectivetrue (optional)
│ │ ├── persistenttrue (optional)
│ │ ├── rowsVector < KeyboardButtonRow >
│ │ │ └── KeyboardButtonRow
│ │ │ └── buttonsVector < KeyboardButton >
│ │ │ ├── KeyboardButton
│ │ │ ├── KeyboardButtonUrl
│ │ │ ├── KeyboardButtonCallback
│ │ │ ├── KeyboardButtonRequestPhone
│ │ │ ├── KeyboardButtonRequestGeoLocation
│ │ │ ├── KeyboardButtonSwitchInline
│ │ │ ├── KeyboardButtonGame
│ │ │ ├── KeyboardButtonBuy
│ │ │ ├── KeyboardButtonUrlAuth
│ │ │ ├── InputKeyboardButtonUrlAuth
│ │ │ ├── KeyboardButtonRequestPoll
│ │ │ ├── InputKeyboardButtonUserProfile
│ │ │ ├── KeyboardButtonUserProfile
│ │ │ ├── KeyboardButtonWebView
│ │ │ ├── KeyboardButtonSimpleWebView
│ │ │ ├── KeyboardButtonRequestPeer
│ │ │ ├── InputKeyboardButtonRequestPeer
│ │ │ └── KeyboardButtonCopy
│ │ └── placeholderstring (optional)
│ └── ReplyInlineMarkup
│ └── rowsVector < KeyboardButtonRow >
│ └── KeyboardButtonRow
│ └── buttonsVector < KeyboardButton >
│ ├── KeyboardButton
│ ├── KeyboardButtonUrl
│ ├── KeyboardButtonGame
│ ├── KeyboardButtonBuy
│ ├── KeyboardButtonUrlAuth
│ ├── KeyboardButtonWebView
│ └── KeyboardButtonCopy
├── 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
├── schedule_dateint (optional)
├── schedule_repeat_periodint (optional)
├── send_asInputPeer (optional)
│ ├── InputPeerEmpty
│ ├── InputPeerSelf
│ ├── InputPeerChat
│ │ └── chat_idlong
│ ├── InputPeerUser
│ │ ├── user_idlong
│ │ └── access_hashlong
│ ├── InputPeerChannel
│ │ ├── channel_idlong
│ │ └── access_hashlong
│ │ ├── peerInputPeer
│ │ │ ├── InputPeerEmpty
│ │ │ ├── InputPeerSelf
│ │ │ ├── InputPeerChat
│ │ │ ├── InputPeerUser
│ │ │ ├── InputPeerChannel
│ │ │ ├── InputPeerUserFromMessage
│ │ │ └── InputPeerChannelFromMessage
│ │ ├── msg_idint
│ │ └── user_idlong
│ ├── peerInputPeer
│ │ ├── InputPeerEmpty
│ │ ├── InputPeerSelf
│ │ ├── InputPeerChat
│ │ ├── InputPeerUser
│ │ ├── InputPeerChannel
│ │ ├── InputPeerUserFromMessage
│ │ └── InputPeerChannelFromMessage
│ ├── msg_idint
│ └── channel_idlong
├── quick_reply_shortcutInputQuickReplyShortcut (optional)
│ │ └── shortcutstring
│ └── shortcut_idint
├── effectlong (optional)
├── allow_paid_starslong (optional)
└── suggested_postSuggestedPost (optional)
└── SuggestedPost
├── acceptedtrue (optional)
├── rejectedtrue (optional)
├── priceStarsAmount (optional)
│ ├── StarsAmount
│ │ ├── amountlong
│ │ └── nanosint
│ └── StarsTonAmount
│ └── amountlong
└── schedule_dateint (optional)

Example

await app.invoke(
    SendMedia(
        silent=None,
        background=None,
        clear_draft=None,
        noforwards=None,
        update_stickersets_order=None,
        invert_media=None,
        allow_paid_floodskip=None,
        peer=await app.resolve_peer(chat_id),
        reply_to=InputReplyToMessage(
            reply_to_msg_id=0,
            top_msg_id=None,
            reply_to_peer_id=None,
            quote_text=None,
            quote_entities=None,
            quote_offset=None,
            monoforum_peer_id=None,
            todo_item_id=None
        ),
        media=InputMediaEmpty(),
        message="Hello",
        random_id=app.rnd_id(),
        reply_markup=ReplyInlineMarkup(rows=[
                    KeyboardButtonRow(buttons=[
                                KeyboardButtonUrl(
                                    style=None,
                                    text="Open",
                                    url="https://google.com"
                                )
                            ])
                ]),
        entities=[
                MessageEntityUnknown(
                    offset=0,
                    length=0
                )
            ],
        schedule_date=0,
        schedule_repeat_period=0,
        send_as=await app.resolve_peer(chat_id),
        quick_reply_shortcut=InputQuickReplyShortcut(shortcut="text"),
        effect=0,
        allow_paid_stars=0,
        suggested_post=SuggestedPost(
            accepted=None,
            rejected=None,
            price=None,
            schedule_date=None
        ),
    )
)