diff --git a/bot.go b/bot.go index a996790..019fe19 100644 --- a/bot.go +++ b/bot.go @@ -495,6 +495,7 @@ func (bot *BotAPI) GetUpdatesChan(config UpdateConfig) (UpdatesChannel, error) { for { select { case <-bot.shutdownChannel: + close(ch) return default: }