diff --git a/telethon/client/messages.py b/telethon/client/messages.py index 3918de20..3389925a 100644 --- a/telethon/client/messages.py +++ b/telethon/client/messages.py @@ -221,18 +221,18 @@ class _IDsIter(RequestIter): async def _init(self, entity, ids): # TODO We never actually split IDs in chunks, but maybe we should if not utils.is_list_like(ids): - self.ids = [ids] + ids = [ids] elif not ids: raise StopAsyncIteration elif self.reverse: - self.ids = list(reversed(ids)) + ids = list(reversed(ids)) else: - self.ids = ids + ids = ids if entity: entity = await self.client.get_input_entity(entity) - self.total = len(self.ids) + self.total = len(ids) from_id = None # By default, no need to validate from_id if isinstance(entity, (types.InputChannel, types.InputPeerChannel)): diff --git a/telethon/version.py b/telethon/version.py index 6cac16c9..7f3d5876 100644 --- a/telethon/version.py +++ b/telethon/version.py @@ -1,3 +1,3 @@ # Versions should comply with PEP440. # This line is parsed in setup.py: -__version__ = '1.6' +__version__ = '1.6.1'