mirror of
https://github.com/LonamiWebs/Telethon.git
synced 2024-11-22 09:26:37 +03:00
Add RequestIter._next__ for synchronous iteration
This commit is contained in:
parent
6b50152bb3
commit
f66d65d409
|
@ -80,6 +80,9 @@ class RequestIter(abc.ABC):
|
|||
self.index += 1
|
||||
return result
|
||||
|
||||
def __next__(self):
|
||||
return self.client.loop.run_until_complete(self.__anext__())
|
||||
|
||||
def __aiter__(self):
|
||||
self.buffer = None
|
||||
self.index = 0
|
||||
|
|
Loading…
Reference in New Issue
Block a user