Inspired by indicozy/telegram-ping-ip
curl
- Install with whatever package manager you usescreen
- Optional requirement to run script in background.
git clone https://github.com/shihaamabr/telegram-ping-ip.git
cd telegram-ping-ip
chmod +x telegram-ping-ip.sh screen-telegram-ping-ip.sh
cp env.sample .env
- Edit the contents of .env to your config (
nano .env
)
./telegram-ping-ip.sh
./screen-telegram-ping-ip.sh
- Add the following line to crontab, Run:
crontab -e
@reboot /bin/bash /path/to/telegram-ping-ip/screen-telegram-ping-ip.sh
- create a daemon, idk, it seems interesting
FYI IT pings to whatismyip.shihaam.me
by default, this can be configured in .env to use ifconfig.me
or whatever else server.