Skip to content

add telegram channel worker with webhook and media support#62

Open
deathbyknowledge wants to merge 1 commit intomainfrom
telegram-channel
Open

add telegram channel worker with webhook and media support#62
deathbyknowledge wants to merge 1 commit intomainfrom
telegram-channel

Conversation

@deathbyknowledge
Copy link
Copy Markdown
Owner

@deathbyknowledge deathbyknowledge commented Mar 2, 2026

Summary

  • add a new channels/telegram worker using Telegram Bot API webhooks + account Durable Object state
  • wire Telegram into gateway bindings, CLI commands, deploy/bundle paths, alchemy wizard, and UI channel lists
  • add outbound Telegram media support: single attachments and media groups (2-10) with URL/base64 inputs and caption handling
  • update docs for Telegram setup/management and clarify that Telegram is webhook-driven (not always-on like WhatsApp/Discord)

Validation

  • bunx tsc --noEmit -p channels/telegram/tsconfig.json
  • bunx tsc --noEmit -p gateway/tsconfig.json
  • bunx tsc --noEmit -p gateway/ui/tsconfig.json
  • cargo check --manifest-path cli/Cargo.toml

@deathbyknowledge
Copy link
Copy Markdown
Owner Author

@codex review

Copy link
Copy Markdown

@chatgpt-codex-connector chatgpt-codex-connector bot left a comment

Choose a reason for hiding this comment

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

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 1230228a57

ℹ️ About Codex in GitHub

Codex has been enabled to automatically review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

When you sign up for Codex through ChatGPT, Codex can also answer questions or update the PR, like "@codex address that feedback".

Comment on lines +221 to +223
...(secrets.telegramBotToken
? { TELEGRAM_BOT_TOKEN: secrets.telegramBotToken }
: {}),
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

P1 Badge Configure Telegram webhook base URL during wizard deploy

In the Alchemy deployment path, the Telegram worker only receives TELEGRAM_BOT_TOKEN, so deployments created via gateway/alchemy never set TELEGRAM_WEBHOOK_BASE_URL. That breaks the post-deploy flow because TelegramChannel.start returns an error when this value is missing (channels/telegram/src/index.ts requires it before starting), despite the wizard step saying webhook setup is automatic. Users selecting Telegram in the wizard will hit a hard failure on gsv channel telegram start unless they manually inject the secret.

Useful? React with 👍 / 👎.

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.

1 participant