mirror of
https://github.com/LonamiWebs/Telethon.git
synced 2025-03-03 19:00:21 +03:00
Fix non-asyncio sleep
This commit is contained in:
parent
3f16c92eb3
commit
3324090c96
|
@ -217,7 +217,7 @@ class MessageMethods(UploadMethods, MessageParseMethods):
|
|||
else:
|
||||
request.max_date = r.messages[-1].date
|
||||
|
||||
time.sleep(max(wait_time - (time.time() - start), 0))
|
||||
await asyncio.sleep(max(wait_time - (time.time() - start), 0))
|
||||
|
||||
async def get_messages(self, *args, **kwargs):
|
||||
"""
|
||||
|
|
Loading…
Reference in New Issue
Block a user