From 76fa7918a5979ab8362f13b9062a1d48ebaff0d4 Mon Sep 17 00:00:00 2001 From: Lonami Exo Date: Wed, 8 Jan 2020 12:07:58 +0100 Subject: [PATCH] Fix get_entity(chat) (#1367) --- telethon/client/users.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/telethon/client/users.py b/telethon/client/users.py index 0db2705b..39d68aad 100644 --- a/telethon/client/users.py +++ b/telethon/client/users.py @@ -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