all repos — telegram-bot-api @ fde58e56ae1e2629ee6b4a77a7feb0ddf38340ee

Golang bindings for the Telegram Bot API

Fix ListenForWebhook closing chan after request.
Syfaro syfaro@huefox.com
Tue, 07 Dec 2021 21:30:04 -0500
commit

fde58e56ae1e2629ee6b4a77a7feb0ddf38340ee

parent

3f07c5f67644dfc8a9c37210de2b95cfdb060515

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

jump to
M bot.gobot.go

@@ -484,13 +484,12 @@ return

} ch <- *update - close(ch) }) return ch } -// ListenForWebhookRespReqFormat registers a http handler for a webhook. +// ListenForWebhookRespReqFormat registers a http handler for a single incoming webhook. func (bot *BotAPI) ListenForWebhookRespReqFormat(w http.ResponseWriter, r *http.Request) UpdatesChannel { ch := make(chan Update, bot.Buffer)