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

@@ -31,7 +31,7 @@ const errRetryWait = 10 * time.Second
// Start start a long polling using getUpdates to get Update, call r.MessageHandle while get new message updates.
func (b *Bot) Start(ctx context.Context) {
var offset int
var offset int64
for {
updates, err := b.GetUpdates(ctx, offset)