Story.copy()#

Story.copy()#

Bound method copy of Story.

Use as a shortcut for:

await client.copy_story(
    chat_id=self.chat.id,
    from_chat_id=from_chat_id,
    story_id=story.id
)

Example

await story.copy(chat_id)
Parameters:
  • chat_id (int | str) – Unique identifier (int) or username (str) of the target chat. For your personal stories you can simply use “me” or “self”.

  • caption (string, optional) – New caption for story, 0-1024 characters after entities parsing. If not specified, the original caption is kept. Pass “” (empty string) to remove the caption.

  • period (int, optional) – How long the story will posted, in secs. only for premium users.

  • privacy (StoriesPrivacyRules, optional) – Story privacy. Defaults to PUBLIC

  • allowed_users (List of int, optional) – List of user_id or chat_id of chat users who are allowed to view stories. Note: chat_id available only with SELECTED_USERS. Works with CLOSE_FRIENDS and SELECTED_USERS only

  • disallowed_users (List of int, optional) – List of user_id whos disallow to view the stories. Note: Works with PUBLIC and CONTACTS only

  • protect_content (bool, optional) – Protects the contents of the sent story from forwarding and saving.

  • parse_mode (ParseMode, optional) – By default, texts are parsed using both Markdown and HTML styles. You can combine both syntaxes together.

  • caption_entities (List of MessageEntity) – List of special entities that appear in the new caption, which can be specified instead of parse_mode.

Returns:

Story – On success, the copied story is returned.

Raises:

RPCError – In case of a Telegram RPC error.