Fix get_entity(chat) (#1367)

This commit is contained in:
Lonami Exo 2020-01-08 12:07:58 +01:00
parent 3c253734ac
commit 76fa7918a5

View File

@ -281,7 +281,7 @@ class UserMethods:
users = tmp
if chats: # TODO Handle chats slice?
chats = (await self(
functions.messages.GetChatsRequest(chats))).chats
functions.messages.GetChatsRequest([x.chat_id for x in chats]))).chats
if channels:
channels = (await self(
functions.channels.GetChannelsRequest(channels))).chats