mirror of
https://github.com/LonamiWebs/Telethon.git
synced 2024-11-22 09:26:37 +03:00
Fix RequestIter.__anext__ without __ainit__ (#1142)
This commit is contained in:
parent
5377169db2
commit
7225b7a40f
|
@ -32,11 +32,11 @@ class RequestIter(abc.ABC):
|
|||
self.wait_time = wait_time
|
||||
self.kwargs = kwargs
|
||||
self.limit = max(float('inf') if limit is None else limit, 0)
|
||||
self.left = None
|
||||
self.left = self.limit
|
||||
self.buffer = None
|
||||
self.index = None
|
||||
self.index = 0
|
||||
self.total = None
|
||||
self.last_load = None
|
||||
self.last_load = 0
|
||||
|
||||
async def _init(self, **kwargs):
|
||||
"""
|
||||
|
|
Loading…
Reference in New Issue
Block a user