Allow negative Offset values for GetUpdates, closes #51.

bot-api-6.1
Syfaro 2016-06-29 12:37:30 -05:00
parent 13f31854a2
commit 1daed40422
1 changed files with 1 additions and 1 deletions

2
bot.go
View File

@ -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 {