all repos — telegram-bot-api @ 0105ee9097c6b25835cd3c163b81b1bebb768ae0

Golang bindings for the Telegram Bot API

Merge pull request #1 from sirlori/master

Fix on the updaterequest
Syfaro syfaro@foxpaw.in
Fri, 26 Jun 2015 21:43:52 -0500
commit

0105ee9097c6b25835cd3c163b81b1bebb768ae0

parent

618a0193889064210f71e13fa0024afcf8cd196b

1 files changed, 2 insertions(+), 3 deletions(-)

jump to
M updates.goupdates.go

@@ -12,11 +12,10 @@ panic(err)

} 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 } } }()