bot-api-6.1
sirlandalf 2015-06-27 04:20:32 +02:00
parent 618a019388
commit 9f17771ecd
1 changed files with 2 additions and 2 deletions

View File

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