mirror of
https://github.com/civsocit/olgram.git
synced 2025-12-16 01:46:17 +00:00
fix
This commit is contained in:
@@ -53,7 +53,8 @@ class CustomRequestHandler(WebhookRequestHandler):
|
|||||||
"""
|
"""
|
||||||
key = self.request.url.path[1:]
|
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:
|
if not bot:
|
||||||
return None
|
return None
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user