PhoenixKit 2.62.1: User notifications through the site's Telegram bot
PhoenixKit 2.62.1 lets the site’s own Telegram bot deliver user notifications, so users no longer need a bot of their own.
An admin ticks Deliver user notifications through this bot on a website Telegram connection. One bot can do this at a time, and the form warns when the bot has a webhook. Each user then links their own chat from Profile → Notifications with one tap, through a one-time link that works for 15 minutes in a private chat only. A user’s own bot still takes precedence. If the site bot fails for a reason that has nothing to do with the chat, such as a revoked token, nobody’s notifications are switched off.
Two crashes are fixed: disconnecting Telegram no longer crashes the settings page when the save fails, and a failed link token is reported as an error.
No migration (still V217).
Full release notes: PhoenixKit 2.62.1
2.62.1 · 13 October 2026
No migration (still V217). Ships PR #930’s website Telegram bot, plus two crash fixes from Claude’s review of it.
Added
- A website Telegram bot for user notifications. An admin ticks Deliver user notifications through this bot on a
website Telegram connection (
Telegram.SiteBot, settingtelegram_notifications_connection; one bot at a time, the form warns when the bot has a webhook). Each user then links their own chat from Profile → Notifications with one tap: a one-timet.me/<bot>?start=<token>link (Telegram.Linking, 15 minutes, hashed, single-use, private chats only) that the card completes by reading the bot’s updates while a link is pending. A user’s own bot still wins; a site-bot failure that is not about the chat (revoked token, deleted connection) is transient and switches nobody off. Telegram.get_me/2,Telegram.get_webhook_info/2, and a:limitoption onTelegram.get_updates/2.
Fixed
- Disconnecting Telegram no longer crashes the settings page when the write fails (
:ok = Linking.unlink/1is now acasewith an error message). Linking.create_token/2returns{:error, _}on a failed insert instead of raising from inside its transaction.
PhoenixKit 2.62.1. Install or update: {:phoenix_kit, "~> 2.62"}, then mix deps.get && mix phoenix_kit.update. Full history: CHANGELOG.