1
bot/models/user.go

24 lines
1.0 KiB
Go
Raw Permalink Normal View History

2022-04-26 00:02:51 +08:00
package models
2022-04-29 17:21:42 +08:00
// 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
2022-04-26 00:02:51 +08:00
type User struct {
ID int64 `json:"id"`
2022-04-26 00:02:51 +08:00
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"`
2022-07-08 17:20:49 +08:00
IsPremium bool `json:"is_premium,omitempty"`
AddedToAttachmentMenu bool `json:"added_to_attachment_menu,omitempty"`
2022-04-26 00:02:51 +08:00
CanJoinGroups bool `json:"can_join_groups,omitempty"`
CanReadAllGroupMessages bool `json:"can_read_all_group_messages,omitempty"`
SupportInlineQueries bool `json:"support_inline_queries,omitempty"`
2024-04-02 23:09:36 +08:00
CanConnectToBusiness bool `json:"can_connect_to_business,omitempty"`
2022-04-26 00:02:51 +08:00
}