Telegram
Connect a Telegram bot so users get alerts and can reply from Telegram.
Each site can connect one Telegram bot. Users link their own Telegram chat to their User. Notifications and automations can then message them, and their replies come back into Cardinal.
Connect the bot
In Telegram, talk to @BotFather, create a bot and copy its token.
As a System Manager, open /desk/telegram-settings. Paste the token into Bot Token, tick Enabled and save.
Click Connect Bot. Cardinal asks Telegram for the bot's name, stores it as Bot Username and registers the site's webhook. A toast says "Connected to @acme_erp_bot".
Telegram must reach the site over HTTPS. Development sites on *.localhost cannot receive messages. A bad token or a URL that is not HTTPS shows Telegram's error under Bot Token.
Link a user
The user opens their own User form, through My Profile in the user menu.
They click Connect Telegram. A new tab opens the bot with a one-time code.
They press Start in Telegram. The bot links the chat to their User and replies.
Reconnect Telegram links a different chat. A user cannot type in a chat id, so nobody can send their alerts to someone else's chat.
What uses it
| Feature | Sends |
|---|---|
| Notification with Channel Telegram | The subject and message to each user the rule alerts |
| Automation Send Telegram step | A message to each linked user who can read the Record |
| Automation Wait for reply step | Resumes when the user replies in Telegram |
| Installed apps | Apps such as Eden send their own messages through the site's bot |
Users without a linked chat get nothing. A message longer than 4,096 characters is cut. Each message is queued with the save that caused it, so a rolled-back save sends nothing. Sending retries 3 times and stops if the user blocked the bot.
A Notification set to Telegram while no bot is enabled writes an Error Log, and the save still goes through.