A simple Telegram bot to ping a server over ICMP or TCP protocol.
First, clone the repo
git clone https://github.com/chitang233/PingBot
cd PingBot
After configuration, run it:
docker compose up -d
First, you need to install these packages in your system:
- Python 3.6+
- Python pip
Then, clone the repo and install the requirements:
git clone https://github.com/chitang233/PingBot
cd PingBot
pip install -r requirements.txt
After configuration, run it:
python main.py
Edit config.py
API_TOKEN
- Your Telegram Bot token.(Get it from @BotFather)PROXY_URL
- Optional. Your proxy URL. Support HTTP and SOCKS5. e.g.http://host:port
,socks5://host:port
SHOW_PUBLIC_IP
- Show your machine's public IP address and country in/start
command if set toTrue
. Default isFalse
.
help - Show help message
icmp - Ping a server over ICMP protocol
tcp - Ping a server over TCP protocol, port required