Skip to content

feat(telegram): support HTTP(S) URLs for media in TelegramChannel#1793

Merged
Re-bin merged 3 commits intoHKUDS:mainfrom
h4nz4:1792-message-tool-sending-images
Mar 18, 2026
Merged

feat(telegram): support HTTP(S) URLs for media in TelegramChannel#1793
Re-bin merged 3 commits intoHKUDS:mainfrom
h4nz4:1792-message-tool-sending-images

Conversation

@h4nz4
Copy link
Copy Markdown
Contributor

@h4nz4 h4nz4 commented Mar 9, 2026

Please see #1792.

Managed to fix it.

Core problem was ignoring the fact that media can be a URL, Telegram Bot api downloads it automatically.

See Telegram bot API, particularly the sendMedia method and the core type InputMedia.

Screenshot

image

Fix #1792

Copy link
Copy Markdown
Collaborator

@chengyongru chengyongru left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice pr

Copy link
Copy Markdown
Collaborator

@Re-bin Re-bin left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM :)

@Re-bin Re-bin merged commit 4b05228 into HKUDS:main Mar 18, 2026
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

bug: message tool does not handle sending images obtained from MCP tools properly

3 participants