Allow negative Offset values for GetUpdates, closes #51.
Syfaro syfaro@foxpaw.in
Wed, 29 Jun 2016 12:37:30 -0500
1 files changed,
1 insertions(+),
1 deletions(-)
jump to
M
bot.go
→
bot.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 {