- Log Request

pull/216/head
AliMVP 7 years ago
parent 9cdb3e161b
commit b91be5b209
  1. 2
      bot.go

@ -511,7 +511,7 @@ func (bot *BotAPI) ListenForWebhook(pattern string) UpdatesChannel {
http.HandleFunc(pattern, func(w http.ResponseWriter, r *http.Request) { http.HandleFunc(pattern, func(w http.ResponseWriter, r *http.Request) {
bytes, _ := ioutil.ReadAll(r.Body) bytes, _ := ioutil.ReadAll(r.Body)
fmt.Println(string(bytes))
var update Update var update Update
json.Unmarshal(bytes, &update) json.Unmarshal(bytes, &update)