toggle_story_is_posted_to_chat_page()#
- Client.toggle_story_is_posted_to_chat_page()#
Toggles whether a story is accessible after expiration.
Usable by Users Bots- Parameters:
story_poster_chat_id (
int
|str
) – Identifier of the chat that posted the story. Unique identifier (int) or username (str) of the target chat. For your personal cloud (Saved Messages) you can simply use “me” or “self”.story_ids (
int
| Iterable ofint
) – List of identifiers of the target stories.is_posted_to_chat_page (
bool
, optional) – Pass True to make the story accessible after expiration; pass False to make it private.
- Returns:
List of
int
– List of updated story IDs.
Example
# Pin a single story await app.toggle_story_is_posted_to_chat_page(story_poster_chat_id, story_id)