diff --git a/api/notify/index.go b/api/notify/index.go index a54ea4b..6ef685b 100644 --- a/api/notify/index.go +++ b/api/notify/index.go @@ -13,8 +13,9 @@ func Handler(w http.ResponseWriter, r *http.Request) { params := r.URL.Query() userId, _ := strconv.Atoi(params.Get("u")) + msg := params.Get("m") - if err := bot.NotifyTxtMessage(userId, "hello, I am telepush!"); err != nil { + if err := bot.NotifyTxtMessage(userId, msg); err != nil { fmt.Fprintf(w, "send message to %d failed!", userId) return }