reopen_forum_topic()#

Client.reopen_forum_topic()#

Use this method to reopen a closed topic in a forum supergroup chat. The bot must be an administrator in the chat for this to work and must have the can_manage_topics administrator rights, unless it is the creator of the topic.

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).

  • message_thread_id (int) – Unique identifier for the target message thread of the forum topic

Returns:

Message – On success, the edited message is returned.

Example

# Create a new Topic
message = await app.create_forum_topic(chat, "Topic Title")
# Close the Topic
await app.close_forum_topic(chat, message.id)
# Reopen the closed Topic
await app.reopen_forum_topic(chat, message.id)