mirror of
https://github.com/pyrogram/pyrogram
synced 2025-08-25 11:28:05 +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:
|
if full_chat.id == c.id:
|
||||||
chat = c
|
chat = c
|
||||||
|
|
||||||
if isinstance(chat_full, types.ChannelFull):
|
if isinstance(full_chat, types.ChannelFull):
|
||||||
if full_chat.linked_chat_id == c.id:
|
if full_chat.linked_chat_id == c.id:
|
||||||
linked_chat = c
|
linked_chat = c
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user