fix: all ID from int to int64 to avoid 32bits machine break (#2191)

Fix all ID from int to int64 to avoid 32bits machine break
This commit is contained in:
Athurg Gooth
2023-09-06 21:14:07 +08:00
committed by GitHub
parent 87a1d4633e
commit 9987337eca
9 changed files with 15 additions and 15 deletions

View File

@@ -7,10 +7,10 @@ import (
)
// GetUpdates make a getUpdates api request.
func (b *Bot) GetUpdates(ctx context.Context, offset int) ([]Update, error) {
func (b *Bot) GetUpdates(ctx context.Context, offset int64) ([]Update, error) {
formData := url.Values{
"timeout": {"60"},
"offset": {strconv.Itoa(offset)},
"offset": {strconv.FormatInt(offset, 10)},
}
var result []Update