mirror of
https://github.com/usememos/memos.git
synced 2025-06-05 22:09:59 +02:00
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:
@@ -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
|
||||
|
Reference in New Issue
Block a user