From 9e7787f8590933fa3509eaf1697c4b640529697d Mon Sep 17 00:00:00 2001 From: Mikhail Putilovskij Date: Thu, 2 Apr 2026 15:21:48 +0300 Subject: [PATCH] =?UTF-8?q?fix(tg):=20/new=20replies=20in=20current=20cont?= =?UTF-8?q?ext=20instead=20of=20sending=20to=20new=20topic=20=E2=80=94=20p?= =?UTF-8?q?revents=20client=20crash=20on=20fast=20topic=20open?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- adapter/telegram/handlers/commands.py | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/adapter/telegram/handlers/commands.py b/adapter/telegram/handlers/commands.py index 7f2e628..5a72836 100644 --- a/adapter/telegram/handlers/commands.py +++ b/adapter/telegram/handlers/commands.py @@ -32,11 +32,7 @@ async def cmd_new(message: Message) -> None: return thread_id = topic.message_thread_id db.create_chat(user_id=user_id, thread_id=thread_id, chat_name=new_name) - await message.bot.send_message( - chat_id=chat_id, - message_thread_id=thread_id, - text=f"Создан {new_name}. Напиши что-нибудь.", - ) + await message.answer(f"Создан {new_name}. Перейди в новый топик.") logger.info("cmd_new", user_id=user_id, thread_id=thread_id, name=new_name)