Skip to content

fix: treat Telegram image documents as images#13215

Closed
jonathanmcw wants to merge 1 commit into
NousResearch:mainfrom
jonathanmcw:fix/telegram-image-documents
Closed

fix: treat Telegram image documents as images#13215
jonathanmcw wants to merge 1 commit into
NousResearch:mainfrom
jonathanmcw:fix/telegram-image-documents

Conversation

@jonathanmcw

Copy link
Copy Markdown

Summary

  • treat supported image documents sent through Telegram as image attachments instead of unsupported documents
  • preserve existing video-document and standard document handling paths
  • add regression coverage for image MIME/extension edge cases and invalid metadata

Test Plan

  • source venv/bin/activate && python -m pytest tests/gateway/test_telegram_documents.py -q
  • source venv/bin/activate && python -m py_compile gateway/platforms/telegram.py tests/gateway/test_telegram_documents.py

@jonathanmcw

Copy link
Copy Markdown
Author

Closing this PR per request.

1 similar comment
@jonathanmcw

Copy link
Copy Markdown
Author

Closing this PR per request.

@jonathanmcw jonathanmcw deleted the fix/telegram-image-documents branch April 21, 2026 00:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant