stories.SendStory#
- class pyrogram.raw.functions.stories.SendStory#
Uploads a Telegram Story. May also be used in a business connection, not by wrapping the query in invokeWithBusinessConnection , but rather by specifying the ID of a controlled business user in peer.
- Details:
Layer:
220ID:
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 (
int64-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 (
int32-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 (
int32-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
int32-bit, optional): If set, adds the story to the specified albums.
- peer (
- Returns: