From 8b73746bcbbaf30f1c56923dbbfb08218fbeb38e Mon Sep 17 00:00:00 2001 From: mihalin Date: Fri, 10 Sep 2021 21:49:07 +0300 Subject: [PATCH] test --- server/custom.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/server/custom.py b/server/custom.py index 7eca260..6c37431 100644 --- a/server/custom.py +++ b/server/custom.py @@ -8,7 +8,8 @@ from olgram.models.models import Bot async def message_handler(message, *args, **kwargs): if message.text and message.text.startswith("/start"): # На команду start нужно ответить, не пересылая сообщение никуда - return SendMessage(chat_id=message.chat.id, text=f'Hi from webhook {args} {kwargs}') + bot = AioBot.get_current() + return SendMessage(chat_id=message.chat.id, text=f'Hi from webhook {args} {kwargs} {bot}') class CustomRequestHandler(WebhookRequestHandler):