Telegram Notifications for New Chats
Get a Telegram message whenever a visitor chats on your widget.
Step 1 — Create a bot
- Open Telegram and message @BotFather.
- Send
/newbotand follow the name instructions. - Copy the HTTP API token (looks like
123456:ABC-DEF...).
Step 2 — Server config (hosting)
On your ChatLM server, edit config.local.php and set:
define('TELEGRAM_BOT_TOKEN', 'YOUR_BOT_TOKEN_HERE');
Do not paste the bot token in the dashboard “Chat ID” field.
Step 3 — Get your Chat ID
- Start a chat with your new bot (tap Start).
- Send any message.
- Visit
https://api.telegram.org/bot<TOKEN>/getUpdatesand find"chat":{"id":— a number, often negative for groups. - Paste that number in dashboard → Telegram Chat ID.
Step 4 — Save & test
Save dashboard settings and send a test message on your website.
Ready to set up your widget?