openclaw/extensions
chi 33e6a6724d
fix(telegram): enable HTML formatting for model switch messages (#60042)
* fix(telegram): enable HTML formatting for model switch messages

The model switch confirmation message was displaying raw Markdown
(**text**) instead of bold formatting because parse_mode was not set.

Changes:
- Add optional extra parameter to editMessageWithButtons for parse_mode
- Change format from Markdown ** to HTML <b> tags
- Pass parse_mode: 'HTML' when editing model switch message

Fixes the issue where model names appeared as **provider/model**
instead of bold text in Telegram.

* fix(telegram): escape HTML entities in model switch confirmation

Add defensive `escapeHtml` helper to sanitize `selection.provider`
and `selection.model` before interpolating them into the HTML
callback message. This prevents potential API rejection (HTTP 400)
if future provider or model names contain `<`, `>`, or `&`.

Addresses review feedback on unescaped HTML interpolation.

* test(telegram): cover HTML model switch confirmation

---------

Co-authored-by: Frank Yang <frank.ekn@gmail.com>
2026-04-04 00:05:09 +08:00
..
acpx
amazon-bedrock
anthropic
anthropic-vertex
bluebubbles
brave
browser
byteplus
chutes
cloudflare-ai-gateway
copilot-proxy
deepgram
deepseek
device-pair
diagnostics-otel
diffs
discord fix: resolve post-rebase gate follow-ups for #60081 2026-04-04 00:53:45 +09:00
duckduckgo
elevenlabs
exa
fal
feishu
firecrawl
github-copilot
google
googlechat
groq
huggingface
image-generation-core
imessage fix: honor imessage setup dm policy accounts 2026-04-03 10:56:55 -05:00
irc
kilocode
kimi-coding
line fix: honor line setup dm policy accounts 2026-04-03 10:52:03 -05:00
litellm
llm-task
lobster
matrix
mattermost
media-understanding-core
memory-core
memory-lancedb
microsoft
microsoft-foundry
minimax
mistral
modelstudio
moonshot
msteams
nextcloud-talk
nostr
nvidia
ollama
open-prose
openai
opencode
opencode-go
openrouter
openshell
perplexity
phone-control
qianfan
qqbot
searxng
sglang
shared
signal fix: honor signal setup dm policy accounts 2026-04-03 10:54:40 -05:00
slack
speech-core
stepfun
synology-chat
synthetic
talk-voice
tavily
telegram fix(telegram): enable HTML formatting for model switch messages (#60042) 2026-04-04 00:05:09 +08:00
thread-ownership
tlon
together
twitch
venice
vercel-ai-gateway
vllm
voice-call
volcengine
whatsapp fix: honor whatsapp heartbeat account allowFrom 2026-04-03 11:04:00 -05:00
xai
xiaomi
zai
zalo fix: honor zalo setup dm policy accounts 2026-04-03 10:42:23 -05:00
zalouser refactor(zalouser): lazy-load async runtime surfaces 2026-04-04 00:51:22 +09:00
.npmignore
AGENTS.md
CLAUDE.md