This is a small Telegram bot designed to provide server traffic usage reports.
Using this bot, you can:
- Monitor incoming, outgoing, and total traffic usage.
- Receive hourly traffic usage reports automatically.
Running this bot is simple and requires minimal setup. Follow the steps below:
-
Clone the Repository
git clone https://github.com/MrReval/Server-Traffic-Monitoring-Telegram-Bot.git cd Server-Traffic-Monitoring-Telegram-Bot
-
Install Dependencies Make sure you have Python installed. Then, install the required libraries:
pip install -r requirements.txt
-
Configure the Bot Update the configuration file with your Telegram bot token and server details:
- Open
bot.py
. - Add your bot token and ChatID.
- Open
-
Run the Bot Start the bot with:
python bot.py
OR
nohup python bot.py &
-
Monitor Reports Once the bot is running, it will send hourly reports about your server’s traffic usage directly to your Telegram chat.
Feel free to contribute to this project by submitting issues or pull requests.
This project is licensed under the MIT License.