diff --git a/telethon/client/messages.py b/telethon/client/messages.py index 4f44a78b..fc6112db 100644 --- a/telethon/client/messages.py +++ b/telethon/client/messages.py @@ -751,7 +751,7 @@ class MessageMethods(UploadMethods, ButtonMethods, MessageParseMethods): total[0] = len(ids) 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)) else: r = await self(functions.messages.GetMessagesRequest(ids))