mirror of
https://github.com/TeamPGM/pyrogram.git
synced 2024-11-16 12:51:18 +00:00
Fix wrong comparison with a non-raw type (#525)
chatex.send now returns raw.types.Chat instead of types.Chat
This commit is contained in:
parent
028e6ed04a
commit
62999772c2
@ -67,7 +67,7 @@ class GetChat(Scaffold):
|
||||
|
||||
await self.fetch_peers([r.chat])
|
||||
|
||||
if isinstance(r.chat, types.Chat):
|
||||
if isinstance(r.chat, raw.types.Chat):
|
||||
chat_id = -r.chat.id
|
||||
|
||||
if isinstance(r.chat, raw.types.Channel):
|
||||
|
Loading…
Reference in New Issue
Block a user