Hide navigation sidebar
Hide table of contents sidebar
PTB has undergone significant changes in v20. Please read the documentation carefully and also check out the transition guide in the wiki.
Back to top
Toggle table of contents sidebar

# ForumTopicCreated

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

  Bases: `telegram.TelegramObject`

  This object represents the content of a service message about a new forum topic created in the chat.

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

  Available In

  `telegram.Message.forum_topic_created`

  New in version 20.0.

  Parameters:

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

  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`