all repos — telegram-bot-api @ 1daed40422d154dcd781d9fa6b5ca1add15635bf

Golang bindings for the Telegram Bot API

Allow negative Offset values for GetUpdates, closes #51.
Syfaro syfaro@foxpaw.in
Wed, 29 Jun 2016 12:37:30 -0500
commit

1daed40422d154dcd781d9fa6b5ca1add15635bf

parent

13f31854a28f71ceeca124692f59679a937440f1

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

jump to
M bot.gobot.go

@@ -364,7 +364,7 @@ // Set Timeout to a large number to reduce requests so you can get updates

// instantly instead of having to wait between requests. func (bot *BotAPI) GetUpdates(config UpdateConfig) ([]Update, error) { v := url.Values{} - if config.Offset > 0 { + if config.Offset != 0 { v.Add("offset", strconv.Itoa(config.Offset)) } if config.Limit > 0 {