Change UserID to int64.

This commit is contained in:
Syfaro 2021-03-09 12:38:15 -05:00
parent 24d4f79474
commit e03cd7f9c6
3 changed files with 20 additions and 26 deletions

View file

@ -123,7 +123,7 @@ func (ch UpdatesChannel) Clear() {
// User represents a Telegram user or bot.
type User struct {
// ID is a unique identifier for this user or bot
ID int `json:"id"`
ID int64 `json:"id"`
// IsBot true, if this user is a bot
//
// optional
@ -180,12 +180,6 @@ func (u *User) String() string {
return name
}
// GroupChat is a group chat.
type GroupChat struct {
ID int `json:"id"`
Title string `json:"title"`
}
// Chat represents a chat.
type Chat struct {
// ID is a unique identifier for this chat
@ -922,7 +916,7 @@ type Contact struct {
// UserID contact's user identifier in Telegram
//
// optional
UserID int `json:"user_id,omitempty"`
UserID int64 `json:"user_id,omitempty"`
// VCard is additional data about the contact in the form of a vCard.
//
// optional