Site Configuration

Telegram - Bot API

Telegram database and bot settings

Create A Bot from BotFather

  1. Open Telegram and search for @BotFather
  2. Start a chat and send the command:
    /newbot
    
  3. Enter a display name for your bot (e.g., My Awesome Bot)
  4. Enter a username for your bot — must end in bot (e.g., my_awesome_bot)
  5. 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

  1. Add your bot to the group chat
  2. Send a message /id in the group to get id
  3. 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.

Copyright © 2026 XMPlus