This commit is contained in:
mihalin 2021-09-10 00:19:19 +03:00
parent 18c81d6b61
commit 92d0968276

View File

@ -56,7 +56,7 @@ class CustomRequestHandler(WebhookRequestHandler):
key = self.request.url.path[1:]
# TODO: async
bot = asyncio.get_event_loop().run_until_complete(Bot.filter(code=key).first())
bot = asyncio.new_event_loop().run_until_complete(Bot.filter(code=key).first())
if not bot:
return None