Skip to content

Instantly share code, notes, and snippets.

@yoonbae81
Created December 26, 2018 03:22
Show Gist options
  • Save yoonbae81/fdd683b48c8f04a9e7211686be9d34ab to your computer and use it in GitHub Desktop.
Save yoonbae81/fdd683b48c8f04a9e7211686be9d34ab to your computer and use it in GitHub Desktop.
텔레그램 메시지 발송
#!/bin/bash
TOKEN=*********************************************
CHAT_ID=********
MESSAGE=$*
URL="https://api.telegram.org/bot$TOKEN/sendMessage"
curl -s -X POST $URL -d chat_id=$CHAT_ID -d text="$MESSAGE"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment