PhoenixKit.Notifications.Channels.Telegram (phoenix_kit v1.7.219)

Copy Markdown View Source

Telegram notification channel — delivers a user's notifications to their personal Telegram bot connection(s).

There's nothing to configure on the notifications page: the channel auto-discovers the recipient's Telegram integration connections and sends to the chat(s) captured on them (during Test on the integration form). Each connection carries a mode:

  • "single" — one locked chat (the owner's) → the bot messages only them.
  • "multi" — every chat that has started the bot → a broadcast.

So a connection stores chat_ids (one for single, many for multi) and the channel sends to all of them. configured?/2 is true once the recipient has a connection with at least one captured chat. The bot token is resolved owner-scoped to the recipient at send time — this module never handles it.

The config arg (the notification_channel:telegram blob) carries only routing/cadence for this channel; connection + chat live on the integration.