Telegram Bot Token, Chat ID and Webhook Secret for WordPress
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
Step 1: Open Telegram, search for @BotFather
Open Telegram, search for @BotFather
Step 2: Send /newbot
Send /newbot
Step 3: Follow the instructions
Follow the instructions: choose a name and username for your bot
Step 4: Copy the token from BotFather’s final message
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
Step 1: Open Telegram, search for @userinfobot
Open Telegram, search for @userinfobot
Step 2: Send any message
Send any message
Step 3: Copy the Id value
Copy the Id value: it is a positive number like 123456789
Group Chat ID
Step 1: Add your bot to the group as a
Add your bot to the group as a member
Step 2: Send any message in the group
Send any message in the group
Step 3: Open https://api.telegram.org/bot{YOUR_TOKEN}/getUpdates in your browser
Open https://api.telegram.org/bot{YOUR_TOKEN}/getUpdates in your browser
Step 4: Find chat.id
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.
Step 1: Click Generate next to the Webhook Secret field
Click Generate next to the Webhook Secret field
Step 2: Click Save Settings
Click Save Settings
Step 3: Go to the Webhook tab and click Set
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.
