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:
NoamDev 2020-10-31 18:08:29 +02:00 committed by GitHub
parent 028e6ed04a
commit 62999772c2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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):