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.

  • 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(chat_id=chat_id, title="Topic Title")