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])
|
await self.fetch_peers([r.chat])
|
||||||
|
|
||||||
if isinstance(r.chat, types.Chat):
|
if isinstance(r.chat, raw.types.Chat):
|
||||||
chat_id = -r.chat.id
|
chat_id = -r.chat.id
|
||||||
|
|
||||||
if isinstance(r.chat, raw.types.Channel):
|
if isinstance(r.chat, raw.types.Channel):
|
||||||
|
Loading…
Reference in New Issue
Block a user