- Log Request

pull/216/head
AliMVP 7 years ago
parent b91be5b209
commit b4ac20a08e
  1. 1
      bot.go

@ -511,7 +511,6 @@ 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)