all repos — telegram-bot-api @ ab8d5487da0c84a0923a44203aa0a4b3b8ca51fb

Golang bindings for the Telegram Bot API

Closing update body
bcmk 45658475+bcmk@users.noreply.github.com
Mon, 10 Dec 2018 18:02:58 +0400
commit

ab8d5487da0c84a0923a44203aa0a4b3b8ca51fb

parent

9860bdfd3a171ceafb6e1eafa163482a6ef92643

1 files changed, 1 insertions(+), 0 deletions(-)

jump to
M bot.gobot.go

@@ -526,6 +526,7 @@ ch := make(chan Update, bot.Buffer)

http.HandleFunc(pattern, func(w http.ResponseWriter, r *http.Request) { bytes, _ := ioutil.ReadAll(r.Body) + r.Body.Close() var update Update json.Unmarshal(bytes, &update)