Fix telegram stop typing if not final message

This commit is contained in:
Sergio Sánchez Vallés
2026-03-04 13:19:35 +01:00
parent 61f658e045
commit ca1f41562c
2 changed files with 4 additions and 2 deletions

View File

@@ -225,7 +225,9 @@ class TelegramChannel(BaseChannel):
logger.warning("Telegram bot not running")
return
self._stop_typing(msg.chat_id)
# Only stop typing indicator for final responses
if not msg.metadata.get("_progress", False):
self._stop_typing(msg.chat_id)
try:
chat_id = int(msg.chat_id)