mirror of
https://github.com/RYGhub/royalnet.git
synced 2024-11-23 19:44:20 +00:00
Improved the reply time
Maybe.
This commit is contained in:
parent
5da6d7f778
commit
d0be259f35
1 changed files with 2 additions and 0 deletions
|
@ -40,6 +40,8 @@ class Bot:
|
|||
for u in self.updates:
|
||||
loop.create_task(self.parse_update(u))
|
||||
self.updates = list()
|
||||
# Wait 1 second between two requests, allowing the parsing of updates.
|
||||
loop.run_until_complete(asyncio.sleep(1))
|
||||
|
||||
async def update_bot_data(self):
|
||||
"""Update self.user_data with the latest information from /getMe."""
|
||||
|
|
Loading…
Reference in a new issue