repost_story()¶
- async Client.repost_story()¶
Repost a story on behalf of a user or business account.
Usable by Users Bots- Parameters:
from_chat_id (
int|str) – Unique identifier (int) or username (str) of the chat where the story was originally posted.from_story_id (
int) – Identifier of the story to repost.chat_id (
int|str, optional) – Unique identifier of target chat where to repost story. Defaults to “me”.business_connection_id (
str, optional) – Unique identifier of the business connection on behalf of which the story will be reposted.active_period (
int, optional) – Period after which the story is moved to archive, in seconds.post_to_chat_page (
bool, optional) – Pass True to post the story to the chat page.protect_content (
bool, optional) – Protects the contents of the sent story from forwarding and saving.
- Returns:
Story– On success, the reposted story is returned.
Example
story = await app.repost_story(from_chat_id="channel", from_story_id=12)