delete_stories()#
- Client.delete_stories()#
Delete stories.
Usable by Users Bots- Parameters:
chat_id (
int
|str
) – Unique identifier (int) or username (str) of the target chat. For your personal cloud (Saved Messages) you can simply use “me” or “self”. For a contact that exists in your Telegram address book you can use his phone number (str).story_ids (
int
| Iterable ofint
, optional) – Unique identifier (int) or list of unique identifiers (list of int) for the target stories.
- Returns:
List of
int
– List of deleted stories IDs
Example
# Delete a single story app.delete_stories(chat_id, 1) # Delete multiple stories app.delete_stories(chat_id, [1, 2])