Skip to content

feat: add Telegram notification channel#198

Open
amrrdev wants to merge 4 commits into
oblien:mainfrom
amrrdev:feat/telegram-notifications
Open

feat: add Telegram notification channel#198
amrrdev wants to merge 4 commits into
oblien:mainfrom
amrrdev:feat/telegram-notifications

Conversation

@amrrdev

@amrrdev amrrdev commented Jul 24, 2026

Copy link
Copy Markdown

Full implementation across backend, dashboard, types, i18n, and docs:

API:

  • Add 'telegram' to VALID_CHANNEL_KINDS in notifications controller
  • Add sanitizeChannelConfig case: validates bot token + chat ID, encrypts token
  • Add redactChannelConfig case: exposes tokenConfigured + chatId
  • Add sendTelegram worker: decrypts token, POSTs HTML message to Telegram Bot API
  • Register telegram in WORKERS map

DB types:

  • Add 'telegram' to ChannelKind union type in notification.repo.ts
  • Add telegram config shape docs in schema/notification.ts

Dashboard:

  • Add Telegram to CHANNEL_ICONS (Send icon), CHANNEL_LABELS
  • Add telegram case to describeChannel
  • Add bot token + chat ID fields in NewChannelForm
  • Update frontend ChannelKind type + config docs

i18n: Add telegram keys to all 9 locales (ar, de, en, es, fr, ja, pt, tr, zh)

Docs: Add telegram to every channel-kind reference in notifications.mdx

amrrdev added 4 commits July 24, 2026 11:30
Full implementation across backend, dashboard, types, i18n, and docs:

API:
- Add 'telegram' to VALID_CHANNEL_KINDS in notifications controller
- Add sanitizeChannelConfig case: validates bot token + chat ID, encrypts token
- Add redactChannelConfig case: exposes tokenConfigured + chatId
- Add sendTelegram worker: decrypts token, POSTs HTML message to Telegram Bot API
- Register telegram in WORKERS map

DB types:
- Add 'telegram' to ChannelKind union type in notification.repo.ts
- Add telegram config shape docs in schema/notification.ts

Dashboard:
- Add Telegram to CHANNEL_ICONS (Send icon), CHANNEL_LABELS
- Add telegram case to describeChannel
- Add bot token + chat ID fields in NewChannelForm
- Update frontend ChannelKind type + config docs

i18n: Add telegram keys to all 9 locales (ar, de, en, es, fr, ja, pt, tr, zh)

Docs: Add telegram to every channel-kind reference in notifications.mdx
Explains where to get the token (@Botfather) and how to find the
chat ID (via getUpdates endpoint). Wraps both fields in a fragment.
Replace abstract token example with 'Paste your Telegram bot token
(e.g. 1234567890:ABCdef...)' so users know what to put there.
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