Skip to content

Commit

Permalink
fix: check callback query
Browse files Browse the repository at this point in the history
  • Loading branch information
totanvix committed Nov 28, 2023
1 parent 145c8bb commit 1d4532a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion api/hook/index.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 1d4532a

Please sign in to comment.