telegram.ForumTopic

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

Bases: telegram.base.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.

New in version 13.15.

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