Skip to content

fix(telegram): allow URL/file_id for send media blocks#3298

Closed
jayy-77 wants to merge 1 commit intosimstudioai:stagingfrom
jayy-77:fix/telegram-send-photo-3220
Closed

fix(telegram): allow URL/file_id for send media blocks#3298
jayy-77 wants to merge 1 commit intosimstudioai:stagingfrom
jayy-77:fix/telegram-send-photo-3220

Conversation

@jayy-77
Copy link
Copy Markdown
Contributor

@jayy-77 jayy-77 commented Feb 22, 2026

Summary

  • Fix Telegram send photo/video/audio/animation blocks rejecting valid URL/file_id strings by using a dedicated media normalizer.
  • Support URL/file_id strings, UserFile-like objects ({ url }), and stringified JSON references from advanced-mode inputs.
  • Add focused unit tests for both the normalizer and TelegramBlock param transformation.

Test plan

  • bun run test -- tools/telegram/media.test.ts blocks/blocks/telegram.test.ts

Fixes #3220

The Telegram send photo/video/audio/animation block was normalizing inputs as file-only and rejecting valid URL/file_id strings. Add a dedicated media normalizer that supports URLs, file_ids, UserFile objects, and stringified JSON references.

Fixes simstudioai#3220
@vercel
Copy link
Copy Markdown

vercel bot commented Feb 22, 2026

@jayy-77 is attempting to deploy a commit to the Sim Team on Vercel.

A member of the Team first needs to authorize it.

@waleedlatif1 waleedlatif1 deleted the branch simstudioai:staging April 3, 2026 23:01
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.

2 participants