You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
gpt-pilot/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>
8 months ago
..
acpx refactor: dedupe test and runtime seams 8 months ago
amazon-bedrock build: bump version to 2026.3.22 8 months ago
anthropic build: bump version to 2026.3.22 8 months ago
anthropic-vertex feat: add anthropic-vertex provider for Claude via GCP Vertex AI (#43356) 8 months ago
bluebubbles test: collapse helper extension test suites 8 months ago
brave fix: repair CI regression checks 8 months ago
byteplus build: bump version to 2026.3.22 8 months ago
chutes build: bump version to 2026.3.22 8 months ago
cloudflare-ai-gateway build: bump version to 2026.3.22 8 months ago
copilot-proxy build: bump version to 2026.3.22 8 months ago
deepgram fix(ci): restore plugin manifests and boundary tests 8 months ago
deepseek fix: refactor deepseek bundled plugin (#48762) (thanks @07akioni) 8 months ago
device-pair test: collapse provider plugin suites 8 months ago
diagnostics-otel build: bump version to 2026.3.22 8 months ago
diffs test: collapse utility plugin suites 8 months ago
discord test: accept fenced discord pairing codes (#54058) (thanks @byungsker) 8 months ago
duckduckgo test: collapse search helper suites 8 months ago
elevenlabs refactor(plugins): move remaining channel and provider ownership out of src 8 months ago
exa test: consolidate plugin provider suites 8 months ago
fal fix(ci): resync generated baselines and line runtime seam 8 months ago
feishu test: refresh pairing reply assertions for fenced codes (#54058) (thanks @byungsker) 8 months ago
firecrawl test: collapse provider plugin suites 8 months ago
github-copilot test: collapse provider plugin suites 8 months ago
google test: collapse provider plugin suites 8 months ago
googlechat test: collapse googlechat helper suites 8 months ago
groq fix(ci): restore plugin manifests and boundary tests 8 months ago
huggingface refactor: add provider onboarding preset appliers 8 months ago
imessage test: collapse imessage test suites 8 months ago
irc test: collapse channel setup test suites 8 months ago
kilocode refactor(kilocode): route shared model constants through core seam 8 months ago
kimi-coding Providers: fix kimi-coding thinking normalization 8 months ago
line test: collapse line channel suites 8 months ago
llm-task build: bump version to 2026.3.22 8 months ago
lobster test: collapse provider plugin suites 8 months ago
matrix chore(tts): rename VOICE_BUBBLE identifiers to OPUS and update docs 8 months ago
mattermost test: collapse setup and monitor channel suites 8 months ago
memory-core fix(memory-core): register memory tools independently to prevent coupled failure (#52668) 8 months ago
memory-lancedb test(memory): unmock infra runtime cleanup 8 months ago
microsoft refactor(plugins): move remaining channel and provider ownership out of src 8 months ago
minimax fix: ensure env proxy dispatcher before MiniMax and OpenAI Codex OAuth flows (openclaw#52228) 8 months ago
mistral fix(mistral): repair max-token defaults and doctor migration (#53054) 8 months ago
modelstudio refactor: dedupe test and runtime seams 8 months ago
moonshot refactor: add provider onboarding preset appliers 8 months ago
msteams test: collapse msteams state and monitor suites 8 months ago
nextcloud-talk test: collapse nextcloud-talk send and helper suites 8 months ago
nostr test: collapse helper plugin test suites 8 months ago
nvidia refactor: extract single-provider plugin entry helper 8 months ago
ollama build: bump version to 2026.3.22 8 months ago
open-prose build: bump version to 2026.3.22 8 months ago
openai style(auth): wrap codex fallback formatting 8 months ago
opencode refactor: unify minimax model and failover live policies 8 months ago
opencode-go build: bump version to 2026.3.22 8 months ago
openrouter refactor: dedupe test and runtime seams 8 months ago
openshell test: collapse utility plugin suites 8 months ago
perplexity test: fix remaining gate drift after main rebase (#52195) (thanks @meng-clb) 8 months ago
phone-control refactor: dedupe test and runtime seams 8 months ago
qianfan refactor: add provider onboarding preset appliers 8 months ago
qwen-portal-auth fix: restore repo-wide gate after upstream sync 8 months ago
sglang build: bump version to 2026.3.22 8 months ago
shared refactor: consolidate plugin sdk surface 8 months ago
signal test: align pairing reply assertions 8 months ago
slack test: align pairing reply assertions 8 months ago
synology-chat test: collapse synology-chat helper suites 8 months ago
synthetic refactor: add provider onboarding preset appliers 8 months ago
talk-voice refactor: prune bundled sdk facades 8 months ago
tavily test: collapse provider plugin suites 8 months ago
telegram fix: preflight invalid telegram photos (#52545) (thanks @hnshah) 8 months ago
thread-ownership fix(release): isolate config doc surfaces and sdk exports 8 months ago
tlon test: collapse channel setup test suites 8 months ago
together refactor: add provider onboarding preset appliers 8 months ago
twitch test: speed up google and twitch suites 8 months ago
venice refactor: add provider onboarding preset appliers 8 months ago
vercel-ai-gateway refactor: extract single-provider plugin entry helper 8 months ago
vllm build: bump version to 2026.3.22 8 months ago
voice-call refactor: dedupe test helpers and harnesses 8 months ago
volcengine build: bump version to 2026.3.22 8 months ago
whatsapp test: align pairing reply assertions 8 months ago
xai test: collapse provider plugin suites 8 months ago
xiaomi refactor: add provider onboarding preset appliers 8 months ago
zai fix(zai): align remaining pi metadata 8 months ago
zalo refactor: dedupe test and script helpers 8 months ago
zalouser fix(plugins): route keyed queue imports through core (#52608) 8 months ago
.npmignore fix: harden windows npm runtime path 9 months ago