mirror of
https://github.com/civsocit/olgram.git
synced 2025-12-15 10:36:16 +00:00
fix
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user