Skip to content

Commit 1daed40

Browse files
author
Syfaro
committed
Allow negative Offset values for GetUpdates, closes #51.
1 parent 13f3185 commit 1daed40

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

bot.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -364,7 +364,7 @@ func (bot *BotAPI) GetFile(config FileConfig) (File, error) {
364364
// instantly instead of having to wait between requests.
365365
func (bot *BotAPI) GetUpdates(config UpdateConfig) ([]Update, error) {
366366
v := url.Values{}
367-
if config.Offset > 0 {
367+
if config.Offset != 0 {
368368
v.Add("offset", strconv.Itoa(config.Offset))
369369
}
370370
if config.Limit > 0 {

0 commit comments

Comments
 (0)