Remove a broken check for GetUpdatesChan.
This commit is contained in:
parent
9105c34c59
commit
5f38203a15
2 changed files with 2 additions and 5 deletions
5
bot.go
5
bot.go
|
@ -493,10 +493,7 @@ func (bot *BotAPI) GetUpdatesChan(config UpdateConfig) (UpdatesChannel, error) {
|
|||
}
|
||||
|
||||
for _, update := range updates {
|
||||
if update.UpdateID >= config.Offset {
|
||||
config.Offset = update.UpdateID + 1
|
||||
ch <- update
|
||||
}
|
||||
ch <- update
|
||||
}
|
||||
}
|
||||
}()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue