24 lines
1.0 KiB
Go
24 lines
1.0 KiB
Go
package models
|
|
|
|
// UserProfilePhotos https://core.telegram.org/bots/api#userprofilephotos
|
|
type UserProfilePhotos struct {
|
|
TotalCount int `json:"total_count"`
|
|
Photos [][]PhotoSize `json:"photos"`
|
|
}
|
|
|
|
// User https://core.telegram.org/bots/api#user
|
|
type User struct {
|
|
ID int64 `json:"id"`
|
|
IsBot bool `json:"is_bot"`
|
|
FirstName string `json:"first_name,omitempty"`
|
|
LastName string `json:"last_name,omitempty"`
|
|
Username string `json:"username,omitempty"`
|
|
LanguageCode string `json:"language_code,omitempty"`
|
|
IsPremium bool `json:"is_premium,omitempty"`
|
|
AddedToAttachmentMenu bool `json:"added_to_attachment_menu,omitempty"`
|
|
CanJoinGroups bool `json:"can_join_groups,omitempty"`
|
|
CanReadAllGroupMessages bool `json:"can_read_all_group_messages,omitempty"`
|
|
SupportInlineQueries bool `json:"support_inline_queries,omitempty"`
|
|
CanConnectToBusiness bool `json:"can_connect_to_business,omitempty"`
|
|
}
|