From 1d4532a65f47242591cc454c161bf96b7dfa66c8 Mon Sep 17 00:00:00 2001 From: totanvix Date: Tue, 28 Nov 2023 07:00:51 +0000 Subject: [PATCH] fix: check callback query --- api/hook/index.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/api/hook/index.go b/api/hook/index.go index 0fc089a..9b23b2c 100644 --- a/api/hook/index.go +++ b/api/hook/index.go @@ -18,7 +18,7 @@ func Handler(w http.ResponseWriter, r *http.Request) { res := make(map[string]string) - if data.Message.Text == "" { + if data.CallbackQuery.Data == "" && data.Message.Text == "" { res["status"] = "ERROR" res["message"] = "Ignore hook with chat content not found" request.Response(w, res, http.StatusOK)