stories.SendStory

class pyrogram.raw.functions.stories.SendStory

Uploads a Telegram Story.

Details:
  • Layer: 194

  • ID: E4E6694B

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.

Returns:

Updates