Skip to content

fix: route Telegram image documents through photo handling#19023

Closed
mrcoferland wants to merge 1 commit into
NousResearch:mainfrom
mrcoferland:fix/telegram-image-doc-images
Closed

fix: route Telegram image documents through photo handling#19023
mrcoferland wants to merge 1 commit into
NousResearch:mainfrom
mrcoferland:fix/telegram-image-doc-images

Conversation

@mrcoferland

Copy link
Copy Markdown
Contributor

Summary\n- Treat Telegram documents with image MIME/extensions as images instead of rejecting .png as unsupported docs\n- Keep the 20 MB limit for image documents\n- Preserve a clear error for malformed/spoofed image documents\n- Add regression tests for PNG image documents and malformed PNG uploads\n\n## Verification\n- python -m pytest tests/gateway/test_telegram_documents.py -q

@alt-glitch alt-glitch added type/bug Something isn't working P2 Medium — degraded but workaround exists comp/gateway Gateway runner, session dispatch, delivery platform/telegram Telegram bot adapter labels May 3, 2026
@alt-glitch

Copy link
Copy Markdown
Collaborator

Likely duplicate of #16710 — same fix routing Telegram image documents through photo handling pipeline. Also related to #18819.

@alt-glitch alt-glitch added the duplicate This issue or pull request already exists label May 3, 2026
@alt-glitch

Copy link
Copy Markdown
Collaborator

Likely duplicate of #16710 — same fix routing Telegram image documents through photo handling pipeline. Also related to #18819.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

comp/gateway Gateway runner, session dispatch, delivery duplicate This issue or pull request already exists P2 Medium — degraded but workaround exists platform/telegram Telegram bot adapter type/bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants