openclaw/extensions
hnshah c7f021f70f
fix: preflight invalid telegram photos (#52545) (thanks @hnshah)
* fix(telegram): validate photo dimensions before sendPhoto

Prevents PHOTO_INVALID_DIMENSIONS errors by checking image dimensions
against Telegram Bot API requirements before calling sendPhoto.

If dimensions exceed limits (width + height > 10,000px), automatically
falls back to sending as document instead of crashing with 400 error.

Tested in production (openclaw 2026.3.13) where this error occurred:
  [telegram] tool reply failed: GrammyError: Call to 'sendPhoto' failed!
  (400: Bad Request: PHOTO_INVALID_DIMENSIONS)

Uses existing sharp dependency to read image metadata. Gracefully
degrades if sharp fails (lets Telegram handle validation, backward
compatible behavior).

Closes: #XXXXX (will reference OpenClaw issue if one exists)

* fix(telegram): validate photo aspect ratio

* refactor: use shared telegram image metadata

* fix: fail closed on telegram image metadata

* fix: preflight invalid telegram photos (#52545) (thanks @hnshah)

---------

Co-authored-by: Bob Shah <bobshah@Macs-Mac-Studio.local>
Co-authored-by: Ayaan Zaidi <hi@obviy.us>
2026-03-25 12:00:20 +05:30
..
acpx refactor: dedupe test and runtime seams 2026-03-24 23:33:30 +00:00
amazon-bedrock
anthropic
anthropic-vertex
bluebubbles test: collapse helper extension test suites 2026-03-25 05:21:16 +00:00
brave fix: repair CI regression checks 2026-03-25 00:20:24 +00:00
byteplus
chutes
cloudflare-ai-gateway
copilot-proxy
deepgram fix(ci): restore plugin manifests and boundary tests 2026-03-22 20:01:25 -07:00
deepseek fix: refactor deepseek bundled plugin (#48762) (thanks @07akioni) 2026-03-23 05:06:07 -07:00
device-pair test: collapse provider plugin suites 2026-03-25 04:25:02 +00:00
diagnostics-otel
diffs test: collapse utility plugin suites 2026-03-25 04:25:02 +00:00
discord test: accept fenced discord pairing codes (#54058) (thanks @byungsker) 2026-03-24 23:09:04 -07:00
duckduckgo test: collapse search helper suites 2026-03-25 00:42:09 +00:00
elevenlabs refactor(plugins): move remaining channel and provider ownership out of src 2026-03-22 19:13:25 -07:00
exa test: consolidate plugin provider suites 2026-03-25 00:42:09 +00:00
fal fix(ci): resync generated baselines and line runtime seam 2026-03-22 19:53:26 -07:00
feishu test: refresh pairing reply assertions for fenced codes (#54058) (thanks @byungsker) 2026-03-24 23:09:04 -07:00
firecrawl test: collapse provider plugin suites 2026-03-25 04:25:02 +00:00
github-copilot test: collapse provider plugin suites 2026-03-25 04:25:02 +00:00
google test: collapse provider plugin suites 2026-03-25 04:25:02 +00:00
googlechat test: collapse googlechat helper suites 2026-03-25 05:33:57 +00:00
groq fix(ci): restore plugin manifests and boundary tests 2026-03-22 20:01:25 -07:00
huggingface refactor: add provider onboarding preset appliers 2026-03-23 01:56:00 +00:00
imessage test: collapse imessage test suites 2026-03-25 05:21:16 +00:00
irc test: collapse channel setup test suites 2026-03-25 04:52:36 +00:00
kilocode refactor(kilocode): route shared model constants through core seam 2026-03-22 19:43:19 -07:00
kimi-coding Providers: fix kimi-coding thinking normalization 2026-03-24 10:58:03 -07:00
line test: collapse line channel suites 2026-03-25 04:25:02 +00:00
llm-task
lobster test: collapse provider plugin suites 2026-03-25 04:25:02 +00:00
matrix chore(tts): rename VOICE_BUBBLE identifiers to OPUS and update docs 2026-03-25 10:49:21 +05:30
mattermost test: collapse setup and monitor channel suites 2026-03-25 04:25:02 +00:00
memory-core fix(memory-core): register memory tools independently to prevent coupled failure (#52668) 2026-03-23 17:05:37 +08:00
memory-lancedb test(memory): unmock infra runtime cleanup 2026-03-25 10:50:00 +05:30
microsoft refactor(plugins): move remaining channel and provider ownership out of src 2026-03-22 19:13:25 -07:00
minimax fix: ensure env proxy dispatcher before MiniMax and OpenAI Codex OAuth flows (openclaw#52228) 2026-03-23 09:26:34 -05:00
mistral fix(mistral): repair max-token defaults and doctor migration (#53054) 2026-03-23 10:57:56 -07:00
modelstudio refactor: dedupe test and runtime seams 2026-03-24 23:33:30 +00:00
moonshot refactor: add provider onboarding preset appliers 2026-03-23 01:56:00 +00:00
msteams test: collapse msteams state and monitor suites 2026-03-25 05:57:02 +00:00
nextcloud-talk test: collapse nextcloud-talk send and helper suites 2026-03-25 05:39:11 +00:00
nostr test: collapse helper plugin test suites 2026-03-25 04:52:36 +00:00
nvidia refactor: extract single-provider plugin entry helper 2026-03-23 01:56:00 +00:00
ollama
open-prose
openai style(auth): wrap codex fallback formatting 2026-03-24 22:49:06 -07:00
opencode refactor: unify minimax model and failover live policies 2026-03-23 00:02:35 -07:00
opencode-go
openrouter refactor: dedupe test and runtime seams 2026-03-24 23:33:30 +00:00
openshell test: collapse utility plugin suites 2026-03-25 04:25:02 +00:00
perplexity
phone-control refactor: dedupe test and runtime seams 2026-03-24 23:33:30 +00:00
qianfan refactor: add provider onboarding preset appliers 2026-03-23 01:56:00 +00:00
qwen-portal-auth
sglang
shared
signal test: align pairing reply assertions 2026-03-25 05:48:31 +00:00
slack test: align pairing reply assertions 2026-03-25 05:48:31 +00:00
synology-chat test: collapse synology-chat helper suites 2026-03-25 05:33:57 +00:00
synthetic refactor: add provider onboarding preset appliers 2026-03-23 01:56:00 +00:00
talk-voice
tavily test: collapse provider plugin suites 2026-03-25 04:25:02 +00:00
telegram fix: preflight invalid telegram photos (#52545) (thanks @hnshah) 2026-03-25 12:00:20 +05:30
thread-ownership
tlon test: collapse channel setup test suites 2026-03-25 04:52:36 +00:00
together refactor: add provider onboarding preset appliers 2026-03-23 01:56:00 +00:00
twitch test: speed up google and twitch suites 2026-03-24 16:26:58 +00:00
venice refactor: add provider onboarding preset appliers 2026-03-23 01:56:00 +00:00
vercel-ai-gateway refactor: extract single-provider plugin entry helper 2026-03-23 01:56:00 +00:00
vllm
voice-call refactor: dedupe test helpers and harnesses 2026-03-24 21:41:46 +00:00
volcengine
whatsapp test: align pairing reply assertions 2026-03-25 05:48:31 +00:00
xai test: collapse provider plugin suites 2026-03-25 04:25:02 +00:00
xiaomi refactor: add provider onboarding preset appliers 2026-03-23 01:56:00 +00:00
zai fix(zai): align remaining pi metadata 2026-03-22 17:51:29 -07:00
zalo refactor: dedupe test and script helpers 2026-03-24 15:48:35 +00:00
zalouser fix(plugins): route keyed queue imports through core (#52608) 2026-03-22 20:35:28 -07:00
.npmignore