Merge pull request #1 from sirlori/master

Fix on the updaterequest
This commit is contained in:
Syfaro 2015-06-26 21:43:52 -05:00
commit 0105ee9097

View file

@ -12,11 +12,10 @@ 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
}
}
}()