Fix ListenForWebhook closing chan after request.
Syfaro syfaro@huefox.com
Tue, 07 Dec 2021 21:30:04 -0500
1 files changed,
1 insertions(+),
2 deletions(-)
jump to
M
bot.go
→
bot.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)