mirror of
https://github.com/Balshgit/mosgortrans.git
synced 2025-09-11 13:00:40 +03:00
add async queue
This commit is contained in:
parent
fec8923eed
commit
5e3676cd5e
@ -86,8 +86,9 @@ async def webhook(request: web.Request) -> web.Response:
|
||||
"""
|
||||
data = await request.json()
|
||||
tg_update = Update(**data)
|
||||
queue.put_nowait(tg_update)
|
||||
logger.info(tg_update)
|
||||
queue.put_nowait(tg_update)
|
||||
logger.info('Put in queue')
|
||||
return web.Response(status=HTTPStatus.ACCEPTED)
|
||||
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user