Source code for aiogram.types.forum_topic
from __future__ import annotations
from typing import TYPE_CHECKING, Any
from .base import TelegramObject
[docs]
class ForumTopic(TelegramObject):
"""
This object represents a forum topic.
Source: https://core.telegram.org/bots/api#forumtopic
"""
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 | None = None
"""*Optional*. Unique identifier of the custom emoji shown as the topic icon"""
is_name_implicit: bool | None = None
"""*Optional*. :code:`True`, if the name of the topic wasn't specified explicitly by its creator and likely needs to be changed by the bot"""
if TYPE_CHECKING:
# DO NOT EDIT MANUALLY!!!
# This section was auto-generated via `butcher`
def __init__(
__pydantic__self__,
*,
message_thread_id: int,
name: str,
icon_color: int,
icon_custom_emoji_id: str | None = None,
is_name_implicit: bool | None = None,
**__pydantic_kwargs: Any,
) -> None:
# DO NOT EDIT MANUALLY!!!
# This method was auto-generated via `butcher`
# Is needed only for type checking and IDE support without any additional plugins
super().__init__(
message_thread_id=message_thread_id,
name=name,
icon_color=icon_color,
icon_custom_emoji_id=icon_custom_emoji_id,
is_name_implicit=is_name_implicit,
**__pydantic_kwargs,
)