AI configuration

Telegram Notifications for New Chats

4 min read

Get a Telegram message whenever a visitor chats on your widget.

Step 1 — Create a bot

  1. Open Telegram and message @BotFather.
  2. Send /newbot and follow the name instructions.
  3. 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

  1. Start a chat with your new bot (tap Start).
  2. Send any message.
  3. Visit https://api.telegram.org/bot<TOKEN>/getUpdates and find "chat":{"id": — a number, often negative for groups.
  4. Paste that number in dashboard → Telegram Chat ID.

Step 4 — Save & test

Save dashboard settings and send a test message on your website.

Troubleshooting

Ready to set up your widget?