toggle_stories_pinned_to_top()¶
- async Client.toggle_stories_pinned_to_top()¶
Pin stories to the top of the pinned stories list.
Usable by Users Bots- Parameters:
chat_id (
int|str) – Unique identifier (int) or username (str) of the target chat.story_ids (
int| Iterable ofint) – A single story ID or list of story IDs to pin to top.
- Returns:
bool– True on success.
Example
await app.toggle_stories_pinned_to_top(chat_id, [123, 456])