Merge pull request #1 from sirlori/master

Fix on the updaterequest
pull/2/head
Syfaro 10 years ago
commit 0105ee9097
  1. 5
      updates.go

@ -12,13 +12,12 @@ 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
} }
} }
}
}() }()
return bot.Updates, nil return bot.Updates, nil