diff --git a/api-server b/api-server deleted file mode 100755 index fbc0da8..0000000 Binary files a/api-server and /dev/null differ diff --git a/main.go b/main.go index e5b59bd..f47deb5 100644 --- a/main.go +++ b/main.go @@ -110,13 +110,11 @@ func notifyHandler(c *gin.Context) { botToken := os.Getenv("BOT_TOKEN") chatid := os.Getenv("CHAT_ID") - telegramToken := botToken - chatID := chatid message := fmt.Sprintf("Service '%s' was updated to image '%s'", data.Name, data.Image) - telegramAPI := fmt.Sprintf("https://api.telegram.org/bot%s/sendMessage", telegramToken) + telegramAPI := fmt.Sprintf("https://api.telegram.org/bot%s/sendMessage", botToken) resp, err := http.PostForm(telegramAPI, url.Values{ - "chat_id": {chatID}, + "chat_id": {chatid}, "text": {message}, }) if err != nil {