From ef24b777267ae2f74fd96d220a873ca7b62e390c Mon Sep 17 00:00:00 2001 From: Aliwoto Date: Tue, 30 Jan 2024 01:19:38 +0330 Subject: [PATCH] Fix ForumTopic._parse issue fr this time. Signed-off-by: Aliwoto --- pyrogram/methods/chats/get_forum_topics_by_id.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/pyrogram/methods/chats/get_forum_topics_by_id.py b/pyrogram/methods/chats/get_forum_topics_by_id.py index a2580546..69b39049 100644 --- a/pyrogram/methods/chats/get_forum_topics_by_id.py +++ b/pyrogram/methods/chats/get_forum_topics_by_id.py @@ -72,8 +72,11 @@ async def get_forum_topics_by_id( ) topics = types.List() + users = {u.id: u for u in getattr(r, "users", [])} + chats = {c.id: c for c in getattr(r, "chats", [])} + messages = {m.id: m for m in getattr(r, "messages", [])} for current in getattr(r, "topics", []): - topics.append(types.ForumTopic._parse(self, current)) + topics.append(types.ForumTopic._parse(self, current, messages, users, chats)) return topics if is_iterable else topics[0] \ No newline at end of file