Skip to content

feat(telegram): download photos and save to group media directory#1069

Draft
kenmaz wants to merge 1 commit intoqwibitai:mainfrom
kenmaz:feat/telegram-photo-download
Draft

feat(telegram): download photos and save to group media directory#1069
kenmaz wants to merge 1 commit intoqwibitai:mainfrom
kenmaz:feat/telegram-photo-download

Conversation

@kenmaz
Copy link

@kenmaz kenmaz commented Mar 14, 2026

When a Telegram photo is received, download the highest-resolution version from the Telegram API and save it to groups/{folder}/media/. The message content becomes [Photo: /workspace/group/media/{id}.jpg] so the agent can read the image using the Read tool (which supports images in Claude Code).

Falls back to [Photo] placeholder if the download fails, preserving existing behaviour.

Also adds the Telegram channel implementation (telegram.ts) and registers it in the channels barrel, along with the grammy dependency.

Type of Change

  • Skill - adds a new skill in .claude/skills/
  • Fix - bug fix or security fix to source code
  • Simplification - reduces or simplifies source code

Description

For Skills

  • I have not made any changes to source code
  • My skill contains instructions for Claude to follow (not pre-built code)
  • I tested this skill on a fresh clone

When a Telegram photo is received, download the highest-resolution
version from the Telegram API and save it to groups/{folder}/media/.
The message content becomes [Photo: /workspace/group/media/{id}.jpg]
so the agent can read the image using the Read tool (which supports
images in Claude Code).

Falls back to [Photo] placeholder if the download fails, preserving
existing behaviour.

Also adds the Telegram channel implementation (telegram.ts) and
registers it in the channels barrel, along with the grammy dependency.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@Andy-NanoClaw-AI Andy-NanoClaw-AI added Status: WIP Work in progress PR: Feature New feature or enhancement labels Mar 14, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

PR: Feature New feature or enhancement Status: WIP Work in progress

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants