Исправлен ответ в личных чатах.

This commit is contained in:
Kirill Kirilenko 2026-01-23 23:47:44 +03:00
parent f89b8e8446
commit 73cd047c82
2 changed files with 2 additions and 2 deletions

View file

@ -46,7 +46,7 @@ async def any_message_handler(message: Message):
chat = database.DB.create_chat_if_not_exists(chat_id)
chat_prompt = chat['ai_prompt']
await message.reply(
await message.answer(
await utils.run_with_progress(
partial(ai_agent.agent.get_private_chat_reply, chat_id, chat_prompt, message.text),
partial(message.bot.send_chat_action, chat_id, 'typing'),

View file

@ -48,7 +48,7 @@ async def any_message_handler(message: Message):
chat_prompt = chat['ai_prompt']
await message.reply(
await message.answer(
await utils.run_with_progress(
partial(ai_agent.agent.get_private_chat_reply, chat_id, chat_prompt, message.text),
partial(message.ctx_api.messages.set_activity, peer_id=chat_id, type='typing'),