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
Merge branch 'main' into pr-904
Re-binfe089abe5bb9
diff --cc nanobot/channels/slack.pyindex d29f1e141,79cbe761a..26a396625--- a/nanobot/channels/slack.py+++ b/nanobot/channels/slack.py@@@ -84,28 -84,13 +84,28 @@@ class SlackChannel(BaseChannel)channel_type = slack_meta.get("channel_type")# Only reply in thread for channel/group messages; DMs don't use threadsuse_thread = thread_ts and channel_type != "im"- await self._web_client.chat_postMessage(- channel=msg.chat_id,- text=self._to_mrkdwn(msg.content),- thread_ts=thread_ts if use_thread else None,- )+ thread_ts_param = thread_ts if use_thread else None++ # Send text message if content is present+ if msg.content:+ await self._web_client.chat_postMessage(+ channel=msg.chat_id,+ text=self._to_mrkdwn(msg.content),+ thread_ts=thread_ts_param,+ )++ # Upload media files if present+ for media_path in msg.media or []:+ try:+ await self._web_client.files_upload_v2(+ channel=msg.chat_id,+ file=media_path,+ thread_ts=thread_ts_param,+ )+ except Exception as e:+ logger.error(f"Failed to upload file {media_path}: {e}")except Exception as e:- logger.error(f"Error sending Slack message: {e}")+ logger.error("Error sending Slack message: {}", e)async def _on_socket_request(self,