Hide navigation sidebar
Hide table of contents sidebar
Skip to content
Back to top
View this page
Toggle table of contents sidebar

# ForumTopic

class telegram.ForumTopic(message_thread_id, name, icon_color, icon_custom_emoji_id=None, *, api_kwargs=None)

  Bases: `telegram.TelegramObject`

  This object represents a forum topic.

  Objects of this class are comparable in terms of equality. Two objects of this class are considered equal, if their `message_thread_id`, `name` and `icon_color` are equal.

  Returned In

  `telegram.Bot.create_forum_topic()`

  Added in version 20.0.

  Parameters:

    - message_thread_id (`int`) – Unique identifier of the forum topic

    - name (`str`) – Name of the topic

    - icon_color (`int`) – Color of the topic icon in RGB format

    - icon_custom_emoji_id (`str`, optional) – Unique identifier of the custom emoji shown as the topic icon.

  message_thread_id

    Unique identifier of the forum topic

    Type:

      `int`

  name

    Name of the topic

    Type:

      `str`

  icon_color

    Color of the topic icon in RGB format

    Type:

      `int`

  icon_custom_emoji_id

    Optional. Unique identifier of the custom emoji shown as the topic icon.

    Type:

      `str`