pinned channel info

This commit is contained in:
kislovdm
2026-06-12 01:31:01 +03:00
parent aecfe4dedf
commit 2b5260049b
8 changed files with 277 additions and 18 deletions
+15
View File
@@ -10,6 +10,16 @@ class ChatMapping:
is_dm: bool
@dataclass(slots=True)
class MaxChatMeta:
topic_title: str
chat_name: str
is_dm: bool
icon_url: str | None
participants_count: int
link: str | None
@dataclass(slots=True)
class MaxIncomingMessage:
max_chat_id: int
@@ -19,6 +29,11 @@ class MaxIncomingMessage:
sender_name: str | None
is_dm: bool
chat_title: str
chat_name: str
chat_icon_url: str | None
chat_icon_local_path: str | None
participants_count: int
max_chat_link: str | None
reply_to_max_message_id: int | None
media: list[dict]
+5
View File
@@ -33,6 +33,11 @@ class Max2TgTask(BaseModel):
sender_name: str | None = None
is_dm: bool = False
chat_title: str
chat_name: str = ""
chat_icon_url: str | None = None
chat_icon_local_path: str | None = None
participants_count: int = 0
max_chat_link: str | None = None
needs_new_topic: bool = False
reply_to_tg_message_id: int | None = None
media: list[MediaItem] = Field(default_factory=list)