Story.copy()¶
- Story.copy()¶
Bound method copy of
Story.Use as a shortcut for:
await client.copy_story( chat_id=story.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.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.period (
int, optional) – How long the story will posted, in secs. only for premium users.media_areas (List of
MediaArea, optional) – List of media areas to add to the story.privacy (
StoriesPrivacyRules, optional) – Story privacy. Defaults toPUBLICallowed_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 withSELECTED_USERS. Works withCLOSE_FRIENDSandSELECTED_USERSonlydisallowed_users (List of
int, optional) – List of user_id whos disallow to view the stories. Note: Works withPUBLICandCONTACTSonlyprotect_content (
bool, optional) – Protects the contents of the sent story from forwarding and saving.
- Returns:
Story– On success, the copied story is returned.- Raises:
RPCError – In case of a Telegram RPC error.