pull/1/head
sirlandalf 10 years ago
parent 618a019388
commit 9f17771ecd
  1. 4
      updates.go

@ -12,11 +12,11 @@ func (bot *BotAPI) UpdatesChan(config UpdateConfig) (chan Update, error) {
}
for _, update := range updates {
if update.UpdateID > config.Offset {
if update.UpdateID >= config.Offset {
config.Offset = update.UpdateID + 1
bot.Updates <- update
}
bot.Updates <- update
}
}
}()