mirror of
https://github.com/LonamiWebs/Telethon.git
synced 2024-11-10 19:46:36 +03:00
Actually fix ids= not being a list, bump 1.6.1
This commit is contained in:
parent
2681dc09bb
commit
df534585e9
|
@ -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)):
|
||||
|
|
|
@ -1,3 +1,3 @@
|
|||
# Versions should comply with PEP440.
|
||||
# This line is parsed in setup.py:
|
||||
__version__ = '1.6'
|
||||
__version__ = '1.6.1'
|
||||
|
|
Loading…
Reference in New Issue
Block a user