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(channels): send telegram attachments with named file path
Simone36e70fe1654
diff --git a/nanobot/channels/telegram.py b/nanobot/channels/telegram.pyindex fdc578e83..cbf9f6427 100644--- a/nanobot/channels/telegram.py+++ b/nanobot/channels/telegram.py@@ -524,13 +524,15 @@ class TelegramChannel(BaseChannel):continuemedia_bytes = Path(media_path).read_bytes()+ filename = Path(media_path).name+ send_kwargs = {param: media_bytes, "filename": filename}await self._call_with_retry(sender,chat_id=chat_id,- **{param: media_bytes},reply_parameters=reply_params,**thread_kwargs,**extra,+ **send_kwargs,)except Exception as e:filename = media_path.rsplit("/", 1)[-1]