Telegram Notifications¶
Use Telegram to deliver EspoCRM notifications to a user's private Telegram chat. The extension can send formatted record updates, received email details, reactions, reminders, and attachments. Users can reply to supported notifications to add a stream post on the related CRM record.
Before you start¶
You need:
- a Telegram bot and its bot token and URL,
- a publicly reachable HTTPS EspoCRM Site URL so Telegram can call the webhook,
- the Telegram integration enabled in EspoCRM,
- Telegram or Both (WebPush & Telegram) selected globally or in the user's Notification Preferences.
Users connect the bot from Notification Preferences. The extension saves each user's chat ID automatically.
Admin setup¶
1. Create a Telegram bot¶
- Open BotFather.
- Create a bot and save its token and URL.
2. Enable the Telegram integration¶
Open Administration → Integrations → Telegram, enter Bot Token and Bot URL, then enable and save the integration.
Saving an enabled integration registers the Telegram webhook. The CRM Site URL must use HTTPS and be reachable from Telegram. If webhook registration fails, EspoCRM shows an error and does not save the integration settings. Disabling the integration removes the webhook.
Upgrading an existing Telegram installation
Save Administration → Integrations → Telegram again after upgrading to register the webhook and its secret. Check that the Site URL is publicly reachable over HTTPS first.
3. Choose the notification provider¶
Open Administration → Mobile App → Notifications Settings and select Telegram or Both (WebPush & Telegram) as Default Notification Provider. Users may override this in Notification Preferences.
If you choose Both, also complete the WebPush setup for users who need browser notifications.
Connect a user's Telegram account¶
- Open Notification Preferences in EspoCRM.
- Select Telegram or Both if you want to override the system default.
- Click Connect with Telegram. The bot link opens in a new tab.
- Press Start in the Telegram chat. EspoCRM detects the connection and updates the page automatically.
The connection link expires after 10 minutes. If the Start button does not appear, copy the displayed /start command into the bot chat. If the link expires, click Connect with Telegram again to generate a new one.
Once connected, Notification Preferences shows Disconnect and Test Notification. The test uses the user's effective provider, so it may send through both channels when Both is selected.
Users can disconnect from the same page. Disconnecting removes the saved Telegram connection; they can connect again later.
Notifications and replies¶
Telegram messages may include a linked CRM record, formatted field changes, received email details, reactions, and attached media. Open a link in the message to view the corresponding item in EspoCRM.
To reply, use Telegram's Reply action on a bot notification and send text. When the notification can be matched to a CRM record and you have permission to post to its stream, the extension adds your reply as a stream post and sends a confirmation. Some notifications have no related record or usable link, so they cannot accept a CRM reply. Only text replies are supported.
Mark all notifications as read¶
In the bot's private chat, choose Mark all CRM notifications as read from the command menu, or send /mark_all_read. The bot confirms when the action is complete.
The command marks unread notifications for the EspoCRM account connected to that Telegram chat. It does not delete messages from Telegram. An unconnected chat or inactive EspoCRM account cannot use the command.
If the command is missing from the bot menu after an upgrade, an administrator can save the enabled Telegram integration again. You can still type /mark_all_read directly in the chat.
Troubleshooting¶
The integration cannot be enabled¶
Check the CRM Site URL under EspoCRM settings. It must be a publicly reachable HTTPS URL. Check the bot token and retry saving the integration.
The user cannot connect¶
Check that the integration is enabled, the bot URL is correct, and the user pressed Start using the link generated in Notification Preferences. The link lasts 10 minutes. Generate a fresh link if needed.
Notifications are not arriving¶
Check the user's effective provider, the Telegram integration, and whether Notification Preferences shows Connected. Use Test Notification to check delivery. If Both is selected, the test may report success when one channel succeeds even if the other fails.
A reply cannot be added to EspoCRM¶
Reply directly to the original bot message. The message must be linked to a notification and a CRM record, and the user must have permission to post on that record. Telegram shows a response when the reply cannot be processed.
Reminder notifications are missing¶
Confirm that notification reminders are configured and scheduled jobs are running.









