mirror of
https://github.com/TeamPGM/pyrogram.git
synced 2024-11-16 12:51:18 +00:00
Fix linked chat parsing
There are two distinct ChatFull types using the same name (but different namespaces), their objects are kept in chat_full and full_chat.
This commit is contained in:
parent
db7fc68efe
commit
37d823f579
@ -252,7 +252,7 @@ class Chat(Object):
|
||||
if full_chat.id == c.id:
|
||||
chat = c
|
||||
|
||||
if isinstance(chat_full, types.ChannelFull):
|
||||
if isinstance(full_chat, types.ChannelFull):
|
||||
if full_chat.linked_chat_id == c.id:
|
||||
linked_chat = c
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user