Skip to content

Telegram plugin: receiving photos crashes the channel, blocks all subsequent messages #944

@thesorenc

Description

@thesorenc

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

  1. Set up the Telegram plugin and pair with a Telegram account
  2. Send a photo from Telegram to the bot
  3. The photo may be received once or twice, but eventually the plugin process crashes
  4. 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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions