a Telegram bot that can provide us manage our server
Python 3.6 or higher installed on your system.
sudo apt update
sudo apt install python3 python3-pip
sudo apt install python3-venv
- Create a telegram bot on BotFather by sending
/newbot
command.
python -m venv myenv
source myenv/bin/activate
pip install python-telegram-bot
cp config.json_template config.json
- config.json
- [TOKEN]: token that we got from BotFather
- [authorized_users]: list of user that can utilize our bot
python server.py
Run your bot as a service using PM2
npm install pm2 -g
pm2 start server.py --name server_telegram_bot
If the service initialized you can controll it with PM2
pm2 start server_telegram_bot
pm2 stop server_telegram_bot
pm2 restart server_telegram_bot
pm2 save
pm2 startup
If you find this project useful and would like to support its development, you can make a donation using Bitcoin. Your contribution will be greatly appreciated.
Bitcoin Address: 1DukhqTeBJLKrhZBKnC4gFFWgTNLt5CU7o
To donate with Bitcoin, you can use any Bitcoin wallet of your choice. Here are the steps:
1. Open your Bitcoin wallet. 2. Select the option to send Bitcoin. 3. Enter the amount you wish to donate. 4. In the recipient field, paste the Bitcoin address above (`1DukhqTeBJLKrhZBKnC4gFFWgTNLt5CU7o`). 5. Double-check the address to ensure it's correct. 6. Confirm the transaction.
Your donation will help us continue to improve and maintain this project. Thank you for your support!