Site Configuration
Telegram - Bot API
Telegram database and bot settings
Create A Bot from BotFather
- Open Telegram and search for @BotFather
- Start a chat and send the command:
/newbot - Enter a display name for your bot (e.g.,
My Awesome Bot) - Enter a username for your bot — must end in
bot(e.g.,my_awesome_bot) - BotFather will reply with your API token:
123456789:ABCDefGhIJKlmNoPQRsTUVwxyZ⚠️ Keep this token secret! Never share it publicly.
Configure Bot settings
Fill in these options and save.
Telegram Bot Token: This is the token secret generated by BotFather.
Telegram Bot Username: The username your provided end with _bot. eg, my_awesome_bot
Get Chat ID
In your termianl run command below to hook your domain to the bot.
You should get a successful output.Terminal
cd /home/XMPLUS-panel
docker compose exec api php artisan xmplus:set-telegram-webhook
Open your telegram and search for your bot (@my_awesome_bot) and send message /id to get Telegram Chat ID
Get Group ID
- Add your bot to the group chat
- Send a message
/idin the group to get id - Group IDs are typically negative numbers (e.g., -987654321), and supergroup IDs start with -100 (e.g., -1001234567890).
Group Chat Settings only works with telegram supergroup chats.
Group Rules: This is a notification displayed whenever a user joing the group cha.
