Created
December 7, 2016 05:30
-
-
Save sanggiChoi/7b1b6f4abaa580d3e3255e0c7de76ea3 to your computer and use it in GitHub Desktop.
This file contains 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 | |
CHATID="1234" | |
KEY="abcd" | |
TIME="10" | |
URL="https://api.telegram.org/bot$KEY/sendMessage" | |
TEXT="Hello world" | |
curl -s --max-time $TIME -d "chat_id=$CHATID&disable_web_page_preview=1&text=$TEXT" $URL >/dev/null |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment