stories.SendStory¶
- class pyrogram.raw.functions.stories.SendStory[source]¶
Uploads a Telegram Story.
Usable by Users Bots- Details:
Layer:
229ID:
8F9E6898
- 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 (
int64-bit) – Unique client message ID required to prevent message resending. See here » for more info on random ID deduplication and updateMessageID mapping.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 withfwd_from_id+fwd_from_story, if themediawas 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 (
int32-bit, optional) – Period after which the story is moved to archive (and to the profile ifpinnedis set), in seconds; must be one of6 * 3600,12 * 3600,86400, or2 * 86400for Telegram Premium users, and86400otherwise.fwd_from_id (
InputPeer, optional) – If set, indicates that this story is a repost of story with IDfwd_from_storyposted by the peer infwd_from_id.fwd_from_story (
int32-bit, optional) – If set, indicates that this story is a repost of story with IDfwd_from_storyposted by the peer infwd_from_id.albums (List of
int32-bit, optional) – If set, adds the story to the specified albums.music (
InputDocument, optional) – If set, the audio track to play as background music for the story.
- Returns: