diff --git a/models/animation.go b/models/animation.go index d8127b1..078bef7 100644 --- a/models/animation.go +++ b/models/animation.go @@ -10,5 +10,5 @@ type Animation struct { Thumb *PhotoSize `json:"thumb,omitempty"` FileName string `json:"file_name,omitempty"` MimeType string `json:"mime_type,omitempty"` - FileSize int `json:"file_size,omitempty"` + FileSize int64 `json:"file_size,omitempty"` } diff --git a/models/audio.go b/models/audio.go index 9469f2a..f2cade8 100644 --- a/models/audio.go +++ b/models/audio.go @@ -9,6 +9,6 @@ type Audio struct { Title string `json:"title,omitempty"` FileName string `json:"file_name,omitempty"` MimeType string `json:"mime_type,omitempty"` - FileSize int `json:"file_size,omitempty"` + FileSize int64 `json:"file_size,omitempty"` Thumb *PhotoSize `json:"thumb,omitempty"` } diff --git a/models/chat.go b/models/chat.go index 8da9bd1..92a7db0 100644 --- a/models/chat.go +++ b/models/chat.go @@ -67,7 +67,7 @@ type ChatLocation struct { // Chat https://core.telegram.org/bots/api#chat type Chat struct { - ID int `json:"id"` + ID int64 `json:"id"` Type string `json:"type"` Title string `json:"title,omitempty"` Username string `json:"username,omitempty"` @@ -93,6 +93,6 @@ type Chat struct { HasProtectedContent bool `json:"has_protected_content,omitempty"` StickerSetName string `json:"sticker_set_name,omitempty"` CanSetStickerSet bool `json:"can_set_sticker_set,omitempty"` - LinkedChatID int `json:"linked_chat_id,omitempty"` + LinkedChatID int64 `json:"linked_chat_id,omitempty"` Location *ChatLocation `json:"location,omitempty"` } diff --git a/models/contact.go b/models/contact.go index 2ed9bff..ec153b7 100644 --- a/models/contact.go +++ b/models/contact.go @@ -5,6 +5,6 @@ type Contact struct { PhoneNumber string `json:"phone_number"` FirstName string `json:"first_name"` LastName string `json:"last_name,omitempty"` - UserID int `json:"user_id,omitempty"` + UserID int64 `json:"user_id,omitempty"` VCard string `json:"vcard,omitempty"` } diff --git a/models/document.go b/models/document.go index 2233817..deb86df 100644 --- a/models/document.go +++ b/models/document.go @@ -7,5 +7,5 @@ type Document struct { Thumb *PhotoSize `json:"thumb,omitempty"` FileName string `json:"file_name,omitempty"` MimeType string `json:"mime_type,omitempty"` - FileSize int `json:"file_size,omitempty"` + FileSize int64 `json:"file_size,omitempty"` } diff --git a/models/file.go b/models/file.go index 6dbc62f..adda77b 100644 --- a/models/file.go +++ b/models/file.go @@ -4,6 +4,6 @@ package models type File struct { FileID string `json:"file_id"` FileUniqueID string `json:"file_unique_id"` - FileSize int `json:"file_size,omitempty"` + FileSize int64 `json:"file_size,omitempty"` FilePath string `json:"file_path,omitempty"` } diff --git a/models/message.go b/models/message.go index 46cb04f..0379841 100644 --- a/models/message.go +++ b/models/message.go @@ -59,8 +59,8 @@ type Message struct { SupergroupChatCreated bool `json:"supergroup_chat_created,omitempty"` ChannelChatCreated bool `json:"channel_chat_created,omitempty"` MessageAutoDeleteTimerChanged *MessageAutoDeleteTimerChanged `json:"message_auto_delete_timer_changed,omitempty"` - MigrateToChatID int `json:"migrate_to_chat_id,omitempty"` - MigrateFromChatID int `json:"migrate_from_chat_id,omitempty"` + MigrateToChatID int64 `json:"migrate_to_chat_id,omitempty"` + MigrateFromChatID int64 `json:"migrate_from_chat_id,omitempty"` PinnedMessage *Message `json:"pinned_message,omitempty"` Invoice *Invoice `json:"invoice,omitempty"` SuccessfulPayment *SuccessfulPayment `json:"successful_payment,omitempty"` diff --git a/models/user.go b/models/user.go index 71b960d..6603885 100644 --- a/models/user.go +++ b/models/user.go @@ -8,7 +8,7 @@ type UserProfilePhotos struct { // User https://core.telegram.org/bots/api#user type User struct { - ID int `json:"id"` + ID int64 `json:"id"` IsBot bool `json:"is_bot"` FirstName string `json:"first_name,omitempty"` LastName string `json:"last_name,omitempty"` diff --git a/models/video.go b/models/video.go index beeff90..c57d4b1 100644 --- a/models/video.go +++ b/models/video.go @@ -10,5 +10,5 @@ type Video struct { Thumb *PhotoSize `json:"thumb,omitempty"` FileName string `json:"file_name,omitempty"` MimeType string `json:"mime_type,omitempty"` - FileSize int `json:"file_size,omitempty"` + FileSize int64 `json:"file_size,omitempty"` } diff --git a/models/voice.go b/models/voice.go index 76b3bee..c392ac9 100644 --- a/models/voice.go +++ b/models/voice.go @@ -6,5 +6,5 @@ type Voice struct { FileUniqueID string `json:"file_unique_id"` Duration int `json:"duration"` MimeType string `json:"mime_type,omitempty"` - FileSize int `json:"file_size,omitempty"` + FileSize int64 `json:"file_size,omitempty"` }