delete_forum_topic()

Client.delete_forum_topic()

Delete a forum topic.

Usable by Users Bots
Parameters:
  • chat_id (int | str) – Unique identifier (int) or username (str) of the target chat. You can also use chat public link in form of t.me/<username> (str).

  • topic_id (int) – Unique identifier (int) of the target forum topic.

Returns:

bool – On success, a Boolean is returned.

Example

await app.delete_forum_topic(chat_id, topic_id)