Your lightweight open-source personal agent.
Python agent-frameworkai-agentai-agentschatbotchatopsdiscord-botllm-agentsllmslocal-llmmcpmodel-context-protocolmulti-agentopenai-compatibleopenclawpersonal-ai-assistantpythonself-hostedtelegram-bot-ai-assistantwebuiworkflow-automation
Fix telegram stop typing if not final message
Sergio Sánchez Vallésca1f41562c11
diff --git a/nanobot/channels/telegram.py b/nanobot/channels/telegram.pyindex 5f739e5fa..de95a15f5 100644--- a/nanobot/channels/telegram.py+++ b/nanobot/channels/telegram.py@@ -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)diff --git a/pyproject.toml b/pyproject.tomlindex 42f6194c3..7ffe8f514 100644--- a/pyproject.toml+++ b/pyproject.toml@@ -30,7 +30,7 @@ dependencies = ["rich>=14.0.0,<15.0.0","croniter>=6.0.0,<7.0.0","dingtalk-stream>=0.24.0,<1.0.0",- "python-telegram-bot[socks] @ git+https://github.com/python-telegram-bot/python-telegram-bot.git@master",+ "python-telegram-bot[socks]>=22.0,<23.0","lark-oapi>=1.5.0,<2.0.0","socksio>=1.0.0,<2.0.0","python-socketio>=5.16.0,<6.0.0",