stories.SendStory

class pyrogram.raw.functions.stories.SendStory

Uploads a Telegram Story.

Details:
  • Layer: 223

  • ID: 737FC2EC

Parameters:
  • peer (InputPeer) – The peer to send the story as.

  • media (InputMedia) – The story media.

  • privacy_rules (List of InputPrivacyRule) – Privacy rules for the story, indicating who can or can’t view the story.

  • random_id (int 64-bit) – Unique client message ID required to prevent message resending.

  • pinned (bool, optional) – Whether to add the story to the profile automatically upon expiration. If not set, the story will only be added to the archive, see here » for more info.

  • noforwards (bool, optional) – If set, disables forwards, screenshots, and downloads.

  • fwd_modified (bool, optional) – Set this flag when reposting stories with fwd_from_id+fwd_from_id, if the media was modified before reposting.

  • media_areas (List of MediaArea, optional) – Media areas associated to the story, see here » for more info.

  • caption (str, optional) – Story caption.

  • entities (List of MessageEntity, optional) – Message entities for styled text, if allowed by the stories_entities client configuration parameter ».

  • period (int 32-bit, optional) – Period after which the story is moved to archive (and to the profile if pinned is set), in seconds; must be one of 6 * 3600, 12 * 3600, 86400, or 2 * 86400 for Telegram Premium users, and 86400 otherwise.

  • fwd_from_id (InputPeer, optional) – If set, indicates that this story is a repost of story with ID fwd_from_story posted by the peer in fwd_from_id.

  • fwd_from_story (int 32-bit, optional) – If set, indicates that this story is a repost of story with ID fwd_from_story posted by the peer in fwd_from_id.

  • albums (List of int 32-bit, optional) – If set, adds the story to the specified albums.

Returns:

Updates

TL Schema

stories.sendStory#737fc2ec
flags:#
pinned:flags.2?true
noforwards:flags.4?true
fwd_modified:flags.7?true
peer:InputPeer
media:InputMedia
media_areas:flags.5?Vector<MediaArea>
caption:flags.0?string
entities:flags.1?Vector<MessageEntity>
privacy_rules:Vector<InputPrivacyRule>
random_id:long
period:flags.3?int
fwd_from_id:flags.6?InputPeer
fwd_from_story:flags.6?int
albums:flags.8?Vector<int>

= Updates

Parameter Tree

SendStory
├── pinnedtrue (optional)
├── noforwardstrue (optional)
├── fwd_modifiedtrue (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
├── 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
├── media_areasVector < MediaArea > (optional)
│ ├── MediaAreaVenue
│ │ ├── coordinatesMediaAreaCoordinates
│ │ │ └── MediaAreaCoordinates
│ │ │ ├── xdouble
│ │ │ ├── ydouble
│ │ │ ├── wdouble
│ │ │ ├── hdouble
│ │ │ ├── rotationdouble
│ │ │ └── radiusdouble (optional)
│ │ ├── geoGeoPoint
│ │ │ ├── GeoPointEmpty
│ │ │ └── GeoPoint
│ │ │ ├── longdouble
│ │ │ ├── latdouble
│ │ │ ├── access_hashlong
│ │ │ └── accuracy_radiusint (optional)
│ │ ├── titlestring
│ │ ├── addressstring
│ │ ├── providerstring
│ │ ├── venue_idstring
│ │ └── venue_typestring
│ ├── InputMediaAreaVenue
│ │ ├── coordinatesMediaAreaCoordinates
│ │ │ └── MediaAreaCoordinates
│ │ │ ├── xdouble
│ │ │ ├── ydouble
│ │ │ ├── wdouble
│ │ │ ├── hdouble
│ │ │ ├── rotationdouble
│ │ │ └── radiusdouble (optional)
│ │ ├── query_idlong
│ │ └── result_idstring
│ ├── MediaAreaGeoPoint
│ │ ├── coordinatesMediaAreaCoordinates
│ │ │ └── MediaAreaCoordinates
│ │ │ ├── xdouble
│ │ │ ├── ydouble
│ │ │ ├── wdouble
│ │ │ ├── hdouble
│ │ │ ├── rotationdouble
│ │ │ └── radiusdouble (optional)
│ │ ├── geoGeoPoint
│ │ │ ├── GeoPointEmpty
│ │ │ └── GeoPoint
│ │ │ ├── longdouble
│ │ │ ├── latdouble
│ │ │ ├── access_hashlong
│ │ │ └── accuracy_radiusint (optional)
│ │ └── addressGeoPointAddress (optional)
│ │ └── GeoPointAddress
│ │ ├── country_iso2string
│ │ ├── statestring (optional)
│ │ ├── citystring (optional)
│ │ └── streetstring (optional)
│ │ ├── darktrue (optional)
│ │ ├── flippedtrue (optional)
│ │ ├── coordinatesMediaAreaCoordinates
│ │ │ └── MediaAreaCoordinates
│ │ │ ├── xdouble
│ │ │ ├── ydouble
│ │ │ ├── wdouble
│ │ │ ├── hdouble
│ │ │ ├── rotationdouble
│ │ │ └── radiusdouble (optional)
│ │ └── reactionReaction
│ │ ├── ReactionEmpty
│ │ ├── ReactionEmoji
│ │ │ └── emoticonstring
│ │ ├── ReactionCustomEmoji
│ │ │ └── document_idlong
│ │ └── ReactionPaid
│ ├── MediaAreaChannelPost
│ │ ├── coordinatesMediaAreaCoordinates
│ │ │ └── MediaAreaCoordinates
│ │ │ ├── xdouble
│ │ │ ├── ydouble
│ │ │ ├── wdouble
│ │ │ ├── hdouble
│ │ │ ├── rotationdouble
│ │ │ └── radiusdouble (optional)
│ │ ├── channel_idlong
│ │ └── msg_idint
│ │ ├── coordinatesMediaAreaCoordinates
│ │ │ └── MediaAreaCoordinates
│ │ │ ├── xdouble
│ │ │ ├── ydouble
│ │ │ ├── wdouble
│ │ │ ├── hdouble
│ │ │ ├── rotationdouble
│ │ │ └── radiusdouble (optional)
│ │ ├── channelInputChannel
│ │ │ ├── InputChannelEmpty
│ │ │ ├── InputChannel
│ │ │ └── InputChannelFromMessage
│ │ └── msg_idint
│ ├── MediaAreaUrl
│ │ ├── coordinatesMediaAreaCoordinates
│ │ │ └── MediaAreaCoordinates
│ │ │ ├── xdouble
│ │ │ ├── ydouble
│ │ │ ├── wdouble
│ │ │ ├── hdouble
│ │ │ ├── rotationdouble
│ │ │ └── radiusdouble (optional)
│ │ └── urlstring
│ ├── MediaAreaWeather
│ │ ├── coordinatesMediaAreaCoordinates
│ │ │ └── MediaAreaCoordinates
│ │ │ ├── xdouble
│ │ │ ├── ydouble
│ │ │ ├── wdouble
│ │ │ ├── hdouble
│ │ │ ├── rotationdouble
│ │ │ └── radiusdouble (optional)
│ │ ├── emojistring
│ │ ├── temperature_cdouble
│ │ └── colorint
│ └── MediaAreaStarGift
│ ├── coordinatesMediaAreaCoordinates
│ │ └── MediaAreaCoordinates
│ │ ├── xdouble
│ │ ├── ydouble
│ │ ├── wdouble
│ │ ├── hdouble
│ │ ├── rotationdouble
│ │ └── radiusdouble (optional)
│ └── slugstring
├── captionstring (optional)
├── 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
├── privacy_rulesVector < InputPrivacyRule >
│ │ └── usersVector < InputUser >
│ │ ├── InputUserEmpty
│ │ ├── InputUserSelf
│ │ ├── InputUser
│ │ │ ├── user_idlong
│ │ │ └── access_hashlong
│ │ └── InputUserFromMessage
│ │ ├── peerInputPeer
│ │ │ ├── InputPeerEmpty
│ │ │ ├── InputPeerSelf
│ │ │ ├── InputPeerChat
│ │ │ ├── InputPeerUser
│ │ │ ├── InputPeerChannel
│ │ │ ├── InputPeerUserFromMessage
│ │ │ └── InputPeerChannelFromMessage
│ │ ├── msg_idint
│ │ └── user_idlong
│ │ └── usersVector < InputUser >
│ │ ├── InputUserEmpty
│ │ ├── InputUserSelf
│ │ ├── InputUser
│ │ │ ├── user_idlong
│ │ │ └── access_hashlong
│ │ └── InputUserFromMessage
│ │ ├── peerInputPeer
│ │ │ ├── InputPeerEmpty
│ │ │ ├── InputPeerSelf
│ │ │ ├── InputPeerChat
│ │ │ ├── InputPeerUser
│ │ │ ├── InputPeerChannel
│ │ │ ├── InputPeerUserFromMessage
│ │ │ └── InputPeerChannelFromMessage
│ │ ├── msg_idint
│ │ └── user_idlong
│ │ └── chatsVector < long >
│ │ └── chatsVector < long >
├── random_idlong
├── periodint (optional)
├── fwd_from_idInputPeer (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
├── fwd_from_storyint (optional)
└── albumsVector < int > (optional)

Example

await app.invoke(
    SendStory(
        pinned=None,
        noforwards=None,
        fwd_modified=None,
        peer=await app.resolve_peer(chat_id),
        media=InputMediaEmpty(),
        media_areas=[
                MediaAreaVenue(
                    coordinates=MediaAreaCoordinates(
                        x=0.0,
                        y=0.0,
                        w=0.0,
                        h=0.0,
                        rotation=0.0,
                        radius=None
                    ),
                    geo=GeoPointEmpty(),
                    title="text",
                    address="text",
                    provider="text",
                    venue_id="text",
                    venue_type="text"
                )
            ],
        caption="text",
        entities=[
                MessageEntityUnknown(
                    offset=0,
                    length=0
                )
            ],
        privacy_rules=[
                InputPrivacyValueAllowContacts()
            ],
        random_id=app.rnd_id(),
        period=0,
        fwd_from_id=await app.resolve_peer(chat_id),
        fwd_from_story=0,
        albums=[0],
    )
)