create_forum_topic()

Client.create_forum_topic()

Create a new 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).

  • title (str) – The forum topic title.

  • icon_color (int, optional) – The color of forum topic icon.

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

Returns:

ForumTopicCreated – On success, a forum_topic_created object is returned.

Example

await app.create_forum_topic("Topic Title")