fix(tg): /new replies in current context instead of sending to new topic — prevents client crash on fast topic open
This commit is contained in:
parent
8a00d5ac54
commit
9e7787f859
1 changed files with 1 additions and 5 deletions
|
|
@ -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)
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue