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): keep raw markdown in overflow stream buffer tail
sanasif786ka87478b6e929a
diff --git a/nanobot/channels/telegram.py b/nanobot/channels/telegram.pyindex 272b1ef63..2dbfe2b32 100644--- a/nanobot/channels/telegram.py+++ b/nanobot/channels/telegram.py@@ -1077,13 +1077,14 @@ class TelegramChannel(BaseChannel):self._app.bot.send_message,chat_id=chat_id, text=chunk, parse_mode="HTML", **thread_kwargs,)- tail = html_chunks[-1]+ markdown_tail = chunks[-1]+ tail_html = html_chunks[-1]sent = await self._call_with_retry(self._app.bot.send_message,- chat_id=chat_id, text=tail, parse_mode="HTML", **thread_kwargs,+ chat_id=chat_id, text=tail_html, parse_mode="HTML", **thread_kwargs,)buf.message_id = sent.message_id- buf.text = tail+ buf.text = markdown_tailasync def _on_start(self, update: Update, context: ContextTypes.DEFAULT_TYPE) -> None:"""Handle /start command."""