Merge branch 'master' into develop

This commit is contained in:
Syfaro 2018-10-08 14:00:38 -05:00
commit 9d2d117c0e
2 changed files with 5 additions and 2 deletions

5
bot.go
View file

@ -411,7 +411,10 @@ func (bot *BotAPI) GetUpdatesChan(config UpdateConfig) (UpdatesChannel, error) {
}
for _, update := range updates {
ch <- update
if update.UpdateID >= config.Offset {
config.Offset = update.UpdateID + 1
ch <- update
}
}
}
}()