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: correct variable references in WhatsApp LID handling
Re-bin544eefbc8afc
diff --git a/nanobot/channels/whatsapp.py b/nanobot/channels/whatsapp.pyindex 197401727..6e00e9dc1 100644--- a/nanobot/channels/whatsapp.py+++ b/nanobot/channels/whatsapp.py@@ -108,12 +108,12 @@ class WhatsAppChannel(BaseChannel):# Extract just the phone number or lid as chat_iduser_id = pn if pn else sender- sender_id = user_id.split("@")[0] if "@" in sender else sender+ sender_id = user_id.split("@")[0] if "@" in user_id else user_idlogger.info(f"Sender {sender}")# Handle voice transcription if it's a voice messageif content == "[Voice Message]":- logger.info(f"Voice message received from {chat_id}, but direct download from bridge is not yet supported.")+ logger.info(f"Voice message received from {sender_id}, but direct download from bridge is not yet supported.")content = "[Voice Message: Transcription not available for WhatsApp yet]"await self._handle_message(