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