Merge pull request #431 from go-telegram-bot-api/userid-int64

Change UserID to int64
This commit is contained in:
Syfaro 2021-03-10 14:59:37 -05:00 committed by GitHub
commit 0a6e349f52
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 20 additions and 20 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
@ -916,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