Merge branch 'master' into develop
This commit is contained in:
commit
9d2d117c0e
2 changed files with 5 additions and 2 deletions
5
bot.go
5
bot.go
|
@ -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
|
||||
}
|
||||
}
|
||||
}
|
||||
}()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue