commit
0105ee9097
1 changed files with 2 additions and 3 deletions
|
@ -12,11 +12,10 @@ func (bot *BotAPI) UpdatesChan(config UpdateConfig) (chan Update, error) {
|
||||||
}
|
}
|
||||||
|
|
||||||
for _, update := range updates {
|
for _, update := range updates {
|
||||||
if update.UpdateID > config.Offset {
|
if update.UpdateID >= config.Offset {
|
||||||
config.Offset = update.UpdateID + 1
|
config.Offset = update.UpdateID + 1
|
||||||
|
bot.Updates <- update
|
||||||
}
|
}
|
||||||
|
|
||||||
bot.Updates <- update
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}()
|
}()
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue