This commit is contained in:
mihalin 2021-09-09 23:44:11 +03:00
parent c1d29f4d8c
commit cf6ba4df6d

View File

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