close_forum_topic()

Client.close_forum_topic()

Close 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.close_forum_topic(chat_id, topic_id)