mirror of
https://github.com/civsocit/olgram.git
synced 2023-07-22 01:29:12 +03:00
fix
This commit is contained in:
parent
c1d29f4d8c
commit
cf6ba4df6d
@ -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
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user