ident

pmow
2016-01-18 21:16:59 -05:00
parent 2592fd46b4
commit 99319073f0

@@ -1,11 +1,13 @@
## Telegram notification basic script ## Telegram notification basic script
`#!/bin/sh` # From https://gist.github.com/matriphe/9a51169508f266d97313
`USERID="<numeric ID from @IDBot>"` `#!/bin/sh`
`KEY="<the API key from @BotFather>"` `# Just alerts on {video_decision} as first parameter, must be specified in script settings.
`TIMEOUT="10"` `USERID="<numeric ID from @IDBot>"`
`URL="https://api.telegram.org/bot$KEY/sendMessage"` `KEY="<the API key from @BotFather>"`
`TEXT="Shit your server is transcoding something: ! Go check on it, noob!"` `TIMEOUT="10"`
`URL="https://api.telegram.org/bot$KEY/sendMessage"`
`if [ "" != "Direct Play" ]; then` `TEXT="Shit your server is transcoding something: ! Go check on it, noob!"`
`curl -s --max-time $TIMEOUT -d "chat_id=$USERID&disable_web_page_preview=1&text=$TEXT" $URL > /dev/null`
`fi` `if [ "" != "Direct Play" ]; then`
`curl -s --max-time $TIMEOUT -d "chat_id=$USERID&disable_web_page_preview=1&text=$TEXT" $URL > /dev/null`
`fi`