mirror of
https://github.com/LonamiWebs/Telethon.git
synced 2024-11-10 19:46:36 +03:00
Fix get_entity(chat) (#1367)
This commit is contained in:
parent
3c253734ac
commit
76fa7918a5
|
@ -281,7 +281,7 @@ class UserMethods:
|
||||||
users = tmp
|
users = tmp
|
||||||
if chats: # TODO Handle chats slice?
|
if chats: # TODO Handle chats slice?
|
||||||
chats = (await self(
|
chats = (await self(
|
||||||
functions.messages.GetChatsRequest(chats))).chats
|
functions.messages.GetChatsRequest([x.chat_id for x in chats]))).chats
|
||||||
if channels:
|
if channels:
|
||||||
channels = (await self(
|
channels = (await self(
|
||||||
functions.channels.GetChannelsRequest(channels))).chats
|
functions.channels.GetChannelsRequest(channels))).chats
|
||||||
|
|
Loading…
Reference in New Issue
Block a user