Skip to content

feat(telegram): support audio and video input - #288

Merged
frostming merged 1 commit into
mainfrom
codex/telegram-video-input
Aug 21, 2026
Merged

feat(telegram): support audio and video input#288
frostming merged 1 commit into
mainfrom
codex/telegram-video-input

Conversation

@frostming

Copy link
Copy Markdown
Collaborator

Summary

  • emit OpenRouter-compatible input_audio and video_url content blocks for Telegram media
  • adapt audio and video blocks to file data for Gemini and Vertex AI without mutating fallback messages
  • handle missing Telegram media size and MIME metadata safely
  • cover MP3, OGG, WAV aliases, video data URLs, provider conversion, and oversized downloads

Verification

  • .venv/bin/pytest -q
  • .venv/bin/ruff check .
  • .venv/bin/mypy src

Notes

Media downloads retain the existing 2 MB limit. Audio and video processing require a model that supports the corresponding input modality.

@cloudflare-workers-and-pages

cloudflare-workers-and-pages Bot commented Aug 21, 2026

Copy link
Copy Markdown

Deploying with  Cloudflare Workers  Cloudflare Workers

The latest updates on your project. Learn more about integrating Git with Workers.

Status Name Latest Commit Preview URL Updated (UTC)
✅ Deployment successful!
View logs
bub f36078e Commit Preview URL

Branch Preview URL
Aug 21 2026, 09:24 AM

@frostming
frostming merged commit 8299760 into main Aug 21, 2026
6 checks passed
@frostming
frostming deleted the codex/telegram-video-input branch August 21, 2026 09:21
@frostming
frostming restored the codex/telegram-video-input branch August 21, 2026 09:21
@frostming
frostming deleted the codex/telegram-video-input branch August 21, 2026 09:30
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