Ping Bot Telegram
PingBot is a simple Telegram bot designed to monitor network connectivity. You can use this bot to ping servers and receive real-time status reports directly on Telegram.
If you search tutorial in ID lang you can check this here
Installation Guide
Follow these steps to install and run PingBot on your system.
1. Initial Setup
Ensure that your system supports Python 3 (any OS, such as Linux, macOS, or Windows).
-
Update and upgrade your system:
sudo apt update && sudo apt upgrade -y
-
Install the main dependencies:
sudo apt install -y python3 python3-pip git
2. Clone the Repository
Clone the PingBot repository using the following command:
git clone https://github.com/ryanachmad12/pingbot_id_lang.git
Navigate to the project directory:
cd pingbot_id_lang
3. Install Python Dependencies
Before running the bot, install all the required dependencies:
pip3 install -r requirements.txt
4. Bot Configuration
Edit the config.py
file to insert your Telegram bot token:
API_TOKEN = 'Bot_Token' # Replace 'Bot_Token' with your bot's token
PROXY_URL = '' # If using a proxy, enter the proxy URL here
SHOW_PUBLIC_IP = True # Set to True if you want to display the public IP
5. Running the Bot
After completing all the steps, you can run the bot with the following command:
python3 bot.py
If the bot starts successfully, you will see log messages in the terminal.
6. Running in the Background (Optional)
If you want to run the bot process in the background, you can use nohup
and &
:
nohup python3 main.py > bot_output.log 2>&1 &
Or:
python3 main.py &
Notes
- Make sure you have a Telegram bot account. You can create one using BotFather.
- If you want to add features or fix bugs, feel free to contribute directly to this repository.
Happy using PingBot! 🎉