mirror of
https://github.com/LonamiWebs/Telethon.git
synced 2025-08-09 05:19:41 +00:00
Fix _iter_ids not expecting InputChannel
This commit is contained in:
@@ -751,7 +751,7 @@ class MessageMethods(UploadMethods, ButtonMethods, MessageParseMethods):
|
|||||||
total[0] = len(ids)
|
total[0] = len(ids)
|
||||||
|
|
||||||
from_id = None # By default, no need to validate from_id
|
from_id = None # By default, no need to validate from_id
|
||||||
if isinstance(entity, types.InputPeerChannel):
|
if isinstance(entity, (types.InputChannel, types.InputPeerChannel)):
|
||||||
r = await self(functions.channels.GetMessagesRequest(entity, ids))
|
r = await self(functions.channels.GetMessagesRequest(entity, ids))
|
||||||
else:
|
else:
|
||||||
r = await self(functions.messages.GetMessagesRequest(ids))
|
r = await self(functions.messages.GetMessagesRequest(ids))
|
||||||
|
Reference in New Issue
Block a user