edit_forum_topic()

Client.edit_forum_topic()

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

  • title (str, optional) – The forum topic title.

  • icon_emoji_id (int, optional) – Unique identifier of the custom emoji shown as the topic icon

Returns:

bool – On success, a Boolean is returned.

Example

await app.edit_forum_topic(chat_id,topic_id,"New Topic Title")