Telegram — Bot Token, Chat ID, Webhook Secret
The Telegram tab is where you connect your bot to the plugin. Without a valid Bot Token and Chat ID the chat widget will not appear on the frontend at all.
Bot Token
The unique identifier for your Telegram bot, provided by @BotFather when you create a bot. It looks like 123456789:ABCdefGHI...
Go to Baza Live Chat → Settings → Telegram. Paste the token into the Bot Token field and click Save Settings.
How to get your Bot Token
- Open Telegram, search for @BotFather
- Send
/newbot - Follow the instructions — choose a name and username for your bot
- Copy the token from BotFather’s final message
To get the token for an existing bot, send /mybots to @BotFather, select your bot, then API Token.
Chat ID
The Chat ID tells the plugin where to deliver visitor messages — to your personal Telegram account, a group, or a channel.
Personal Chat ID
- Open Telegram, search for @userinfobot
- Send any message
- Copy the Id value — it is a positive number like
123456789
Group Chat ID
- Add your bot to the group as a member
- Send any message in the group
- Open
https://api.telegram.org/bot{YOUR_TOKEN}/getUpdatesin your browser - Find
chat.id— it is a negative number like-123456789
Webhook Secret
An optional security token that verifies every incoming Telegram request. If set, the plugin will reject any webhook request that does not include this token — protecting your site from fake webhook calls.
- Click Generate next to the Webhook Secret field
- Click Save Settings
- Go to the Webhook tab and click Set Webhook again to register the secret with Telegram
If you change the Webhook Secret you must re-set the webhook — otherwise Telegram requests will be rejected.