Story¶
- class telegram.Story(chat, id, *, api_kwargs=None)[source]¶
Bases:
telegram.TelegramObjectThis object represents a story.
Objects of this class are comparable in terms of equality. Two objects of this class are considered equal, if their
chatandidare equal.Available In
Added in version 20.5.
- Parameters:
chat (
telegram.Chat) – Chat that posted the story.id (
int) – Unique identifier for the story in the chat.
- async repost(business_connection_id, active_period, post_to_chat_page=None, protect_content=None, *, read_timeout=None, write_timeout=None, connect_timeout=None, pool_timeout=None, api_kwargs=None)[source]¶
Shortcut for:
await bot.repost_story( from_chat_id=story.chat.id, from_story_id=story.id, *args, **kwargs )
For the documentation of the arguments, please see
telegram.Bot.repost_story().Added in version 22.6.