From 514d8a69e7d1683db28318eae906301df40670de Mon Sep 17 00:00:00 2001 From: Thomas Date: Mon, 22 Jul 2019 13:07:58 +0200 Subject: [PATCH] replacing BOTID by CHATID TELEGRAM_BOTID becomes TELEGRAM_CHATID it is misleading to name it bot id - imho as the id we need here is actually the chat id, either from a user or group. that id is not related to the bot itself. --- README.md | 2 +- host-by-telegram.sh | 4 ++-- service-by-telegram.sh | 4 ++-- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/README.md b/README.md index 5417e03..48795da 100644 --- a/README.md +++ b/README.md @@ -14,7 +14,7 @@ apply Notification "Host by Telegram" to Host { users = [ "telegram_unixe" ] vars.notification_logtosyslog = true vars.telegram_bot = "" - vars.telegram_botid = "" + vars.telegram_chatid = "" vars.telegram_bottoken = "" } ``` diff --git a/host-by-telegram.sh b/host-by-telegram.sh index db46b25..6f91cfe 100755 --- a/host-by-telegram.sh +++ b/host-by-telegram.sh @@ -26,7 +26,7 @@ The following are mandatory: -n HOSTDISPLAYNAME (\$host.display_name$) -o HOSTOUTPUT (\$host.output$) -p TELEGRAM_BOT (\$telegram_bot$) - -q TELEGRAM_BOTID (\$telegram_botid$) + -q TELEGRAM_CHATID (\$telegram_chatid$) -r TELEGRAM_BOTTOKEN (\$telegram_bottoken$) -s HOSTSTATE (\$host.state$) -t NOTIFICATIONTYPE (\$notification.type$) @@ -56,7 +56,7 @@ do n) HOSTDISPLAYNAME=$OPTARG ;; o) HOSTOUTPUT=$OPTARG ;; p) TELEGRAM_BOT=$OPTARG ;; - q) TELEGRAM_BOTID=$OPTARG ;; + q) TELEGRAM_CHATID=$OPTARG ;; r) TELEGRAM_BOTTOKEN=$OPTARG ;; s) HOSTSTATE=$OPTARG ;; t) NOTIFICATIONTYPE=$OPTARG ;; diff --git a/service-by-telegram.sh b/service-by-telegram.sh index ebdcdae..820bfed 100755 --- a/service-by-telegram.sh +++ b/service-by-telegram.sh @@ -27,7 +27,7 @@ The following are mandatory: -n HOSTDISPLAYNAME (\$host.display_name$) -o SERVICEOUTPUT (\$service.output$) -p TELEGRAM_BOT (\$telegram_bot$) - -q TELEGRAM_BOTID (\$telegram_botid$) + -q TELEGRAM_CHATID (\$telegram_chatid$) -r TELEGRAM_BOTTOKEN (\$telegram_bottoken$) -s SERVICESTATE (\$service.state$) -t NOTIFICATIONTYPE (\$notification.type$) @@ -58,7 +58,7 @@ do n) HOSTDISPLAYNAME=$OPTARG ;; o) SERVICEOUTPUT=$OPTARG ;; p) TELEGRAM_BOT=$OPTARG ;; - q) TELEGRAM_BOTID=$OPTARG ;; + q) TELEGRAM_CHATID=$OPTARG ;; r) TELEGRAM_BOTTOKEN=$OPTARG ;; s) SERVICESTATE=$OPTARG ;; t) NOTIFICATIONTYPE=$OPTARG ;;