This bot monitors your X-UI panel and sends periodic updates about the database status.
curl -sSL https://raw.githubusercontent.com/yourusername/telegram-xui-bot/main/install.sh | sudo bash- Clone the repository:
git clone https://github.com/yourusername/telegram-xui-bot.git
cd telegram-xui-bot- Install dependencies:
python3 -m pip install -r requirements.txt- Configure the bot:
- Edit
src/config.pyand set your Telegram Bot Token
- Run the bot:
python3 src/bot.py- Start a chat with your bot on Telegram
- Use
/startto begin setup - Follow the prompts to configure your X-UI panel credentials
- Use
/statusto check the current monitoring status
- Check status:
systemctl status telegram-xui-bot - View logs:
journalctl -u telegram-xui-bot -f - Restart bot:
systemctl restart telegram-xui-bot - Stop bot:
systemctl stop telegram-xui-bot
- The bot stores credentials in
/opt/telegram-xui-bot/data/credentials.json - Make sure to secure your server and restrict access to the installation directory
- Regularly update your system and the bot for security patches