Skip to content

Instantly share code, notes, and snippets.

@maxpatternman
Created January 9, 2018 20:57
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save maxpatternman/5f5fe1d475f1626f4bac752f7c3cb5bc to your computer and use it in GitHub Desktop.
Save maxpatternman/5f5fe1d475f1626f4bac752f7c3cb5bc to your computer and use it in GitHub Desktop.
Send messages with your TelegramBot
#!/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