Created
January 9, 2018 20:57
-
-
Save maxpatternman/5f5fe1d475f1626f4bac752f7c3cb5bc to your computer and use it in GitHub Desktop.
Send messages with your TelegramBot
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/sh | |
API_TOKEN='' | |
CHAT_ID='' | |
PARSE_MODE='Markdown' | |
curl -s \ | |
--retry 20 \ | |
-X POST "https://api.telegram.org/bot${API_TOKEN}/sendMessage" \ | |
-d chat_id=${CHAT_ID} \ | |
-d parse_mode=${PARSE_MODE} \ | |
-d text="$@" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment