From 1daed40422d154dcd781d9fa6b5ca1add15635bf Mon Sep 17 00:00:00 2001 From: Syfaro Date: Wed, 29 Jun 2016 12:37:30 -0500 Subject: [PATCH] Allow negative Offset values for GetUpdates, closes #51. --- bot.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bot.go b/bot.go index d3f6df70..7d396693 100644 --- a/bot.go +++ b/bot.go @@ -364,7 +364,7 @@ func (bot *BotAPI) GetFile(config FileConfig) (File, error) { // 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 {