ForumTopic

class telegram.ForumTopic(message_thread_id, name, icon_color, icon_custom_emoji_id=None, is_name_implicit=None, *, api_kwargs=None)[source]

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.

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.

  • is_name_implicit (bool, optional) –

    True, if the name of the topic wasn’t specified explicitly by its creator and likely needs to be changed by the bot.

    Added in version 22.6.

message_thread_id[source]

Unique identifier of the forum topic

Type:

int

name[source]

Name of the topic

Type:

str

icon_color[source]

Color of the topic icon in RGB format

Type:

int

icon_custom_emoji_id[source]

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

Type:

str

is_name_implicit[source]

Optional. True, if the name of the topic wasn’t specified explicitly by its creator and likely needs to be changed by the bot.

Added in version 22.6.

Type:

bool