From 9f17771ecd47c3a9f2f594cf3aa90b576ad5eaf0 Mon Sep 17 00:00:00 2001 From: sirlandalf Date: Sat, 27 Jun 2015 04:20:32 +0200 Subject: [PATCH] fixes --- updates.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/updates.go b/updates.go index a5168fa..8678238 100644 --- a/updates.go +++ b/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 } } }()