mirror of
https://github.com/LonamiWebs/Telethon.git
synced 2025-07-13 17:42:29 +03:00
Fix _iter_ids not expecting InputChannel
This commit is contained in:
parent
7778b665db
commit
6c51c35ccf
|
@ -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))
|
||||||
|
|
Loading…
Reference in New Issue
Block a user