Skip to content

fix: wire image data through to Claude for screenshot/photo support#168

Merged
RichardAtCT merged 1 commit intoRichardAtCT:mainfrom
Whanod:fix/image-screenshot-support
Mar 30, 2026
Merged

fix: wire image data through to Claude for screenshot/photo support#168
RichardAtCT merged 1 commit intoRichardAtCT:mainfrom
Whanod:fix/image-screenshot-support

Conversation

@Whanod
Copy link
Copy Markdown
Contributor

@Whanod Whanod commented Mar 29, 2026

Summary

  • The bot was downloading and base64-encoding images but only passing a text prompt to Claude, never the actual image data
  • This fix threads images through orchestrator → facade → SDK integration, constructing proper multimodal content blocks (image + text) so Claude can actually see uploaded screenshots and photos
  • Backward compatible — images defaults to None, so all existing text-only paths are unaffected

Test plan

  • Send a photo/screenshot to the bot and verify Claude describes its contents correctly
  • Send a photo with a caption and verify Claude uses both the image and caption
  • Send a regular text message and verify it still works as before (no regression)
  • Test with different image formats (PNG, JPEG, GIF, WebP)

🤖 Generated with Claude Code

The bot was downloading and base64-encoding images but only passing a
text prompt to Claude, never the actual image data. This sends images
as multimodal content blocks via the SDK AsyncIterable path so Claude
can actually see uploaded screenshots and photos.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@RichardAtCT RichardAtCT merged commit 5e73edd into RichardAtCT:main Mar 30, 2026
1 check passed
iamvox pushed a commit to thereisnotime/claude-code-telegram that referenced this pull request Apr 1, 2026
…ichardAtCT#168)

The bot was downloading and base64-encoding images but only passing a
text prompt to Claude, never the actual image data. This sends images
as multimodal content blocks via the SDK AsyncIterable path so Claude
can actually see uploaded screenshots and photos.

Co-authored-by: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
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