delete_stories()

Client.delete_stories()

Delete one or more story by using story identifiers.

Usable by Users Bots
Parameters:
  • story_ids (int | Iterable of int) – Pass a single story identifier or an iterable of story ids (as integers) to get the content of the story themselves.

  • chat_id (int, optional) – Unique identifier (int) or username (str) of the target channel. You can also use channel public link in form of t.me/<username> (str).

Returns:

bool – On success, a True is returned.

Example

# Delete one story
await app.delete_stories(12345)

# Delete more than one story (list of stories)
await app.delete_stories([12345, 12346])