delete_stories()

Client.delete_stories()

Delete posted 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”.

  • story_ids (int | Iterable of int, 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

await app.delete_stories(chat_id, 1)

await app.delete_stories(chat_id, [1, 2])