repostStory¶
Returns: Story
- class litegram.methods.repost_story.RepostStory(*, business_connection_id: str, from_chat_id: int, from_story_id: int, active_period: int, post_to_chat_page: bool | None = None, protect_content: bool | None = None, **extra_data: Any)[source]¶
Reposts a story on behalf of a business account from another business account. Both business accounts must be managed by the same bot, and the story on the source account must have been posted (or reposted) by the bot. Requires the can_manage_stories business bot right for both business accounts. Returns
litegram.types.story.Storyon success.
Usage¶
As bot method¶
result: Story = await bot.repost_story(...)
Method as object¶
Imports:
from litegram.methods.repost_story import RepostStoryalias:
from litegram.methods import RepostStory
With specific bot¶
result: Story = await bot(RepostStory(...))
As reply into Webhook in handler¶
return RepostStory(...)