Bug description
When a photo is sent from Telegram to the bot, the plugin process crashes and stops receiving all subsequent messages. The channel becomes completely unresponsive until restarted.
Steps to reproduce
- Set up the Telegram plugin and pair with a Telegram account
- Send a photo from Telegram to the bot
- The photo may be received once or twice, but eventually the plugin process crashes
- After the crash, no further messages (text or photo) are delivered
Expected behavior
Photos should be received and forwarded to the Claude Code session reliably, or if unsupported, gracefully rejected with an error message — not crash the entire channel.
Actual behavior
The plugin process crashes (becomes orphaned). The plugin_state.json shows an orphaned_at timestamp coinciding with the photo send. No further messages are received until the plugin is restarted.
Environment
- Plugin version: 0.0.2 (package.json says 0.0.1)
- Platform: macOS (Darwin 25.3.0)
- Runtime: Bun
- Grammy version: ^1.21.0
Additional context
Bug description
When a photo is sent from Telegram to the bot, the plugin process crashes and stops receiving all subsequent messages. The channel becomes completely unresponsive until restarted.
Steps to reproduce
Expected behavior
Photos should be received and forwarded to the Claude Code session reliably, or if unsupported, gracefully rejected with an error message — not crash the entire channel.
Actual behavior
The plugin process crashes (becomes orphaned). The
plugin_state.jsonshows anorphaned_attimestamp coinciding with the photo send. No further messages are received until the plugin is restarted.Environment
Additional context
~/.claude/channels/telegram/inbox/before the crash occurs (6 JPG files present)plugin_state.jsonorphaned_atfield is set, confirming the process died