mirror of
https://github.com/LonamiWebs/Telethon.git
synced 2025-08-09 05:19:41 +00:00
Fix non-asyncio sleep
This commit is contained in:
@@ -217,7 +217,7 @@ class MessageMethods(UploadMethods, MessageParseMethods):
|
|||||||
else:
|
else:
|
||||||
request.max_date = r.messages[-1].date
|
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):
|
async def get_messages(self, *args, **kwargs):
|
||||||
"""
|
"""
|
||||||
|
Reference in New Issue
Block a user