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 PingBotAfter configuration, run it:
docker compose up -dFirst, 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.txtAfter configuration, run it:
python main.pyEdit 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:portSHOW_PUBLIC_IP- Show your machine's public IP address and country in/startcommand 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