mirror of
https://github.com/LonamiWebs/Telethon.git
synced 2024-11-23 01:46:35 +03:00
Fix wrong call to determine entity type
This commit is contained in:
parent
a142b7de5e
commit
be8838b5f8
|
@ -246,7 +246,7 @@ class _IDsIter(RequestIter):
|
||||||
self._ids = list(reversed(ids)) if self.reverse else ids
|
self._ids = list(reversed(ids)) if self.reverse else ids
|
||||||
self._offset = 0
|
self._offset = 0
|
||||||
self._entity = (await self.client.get_input_entity(entity)) if entity else None
|
self._entity = (await self.client.get_input_entity(entity)) if entity else None
|
||||||
self._ty = helpers._EntityType(self._entity) if self._entity else None
|
self._ty = helpers._entity_type(self._entity) if self._entity else None
|
||||||
|
|
||||||
# 30s flood wait every 300 messages (3 requests of 100 each, 30 of 10, etc.)
|
# 30s flood wait every 300 messages (3 requests of 100 each, 30 of 10, etc.)
|
||||||
if self.wait_time is None:
|
if self.wait_time is None:
|
||||||
|
|
Loading…
Reference in New Issue
Block a user