Last active
September 21, 2017 14:44
-
-
Save srlemke/5906041cdee526b4312a4dc7bbb213d2 to your computer and use it in GitHub Desktop.
send external IP adress to telegram bot
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/bash | |
| curl ifconfig.me > /tmp/Cur_IP > /dev/null | |
| /usr/bin/curl -s -X POST https://api.telegram.org/bot319999999:AAFp3d8FM5h1RV8xxxxxxxxxxxxxxxxxxxx/sendMessage -d text=`cat /tmp/Cur_IP` -d chat_id=29999999 > /dev/null |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment