Updates for Bot API 4.7.
This commit is contained in:
parent
6ce4ec747d
commit
75e27e1380
5 changed files with 194 additions and 11 deletions
23
types.go
23
types.go
|
@ -186,6 +186,7 @@ type Message struct {
|
|||
Location *Location `json:"location"` // optional
|
||||
Venue *Venue `json:"venue"` // optional
|
||||
Poll *Poll `json:"poll"` // optional
|
||||
Dice *Dice `json:"dice"` // optional
|
||||
NewChatMembers []User `json:"new_chat_members"` // optional
|
||||
LeftChatMember *User `json:"left_chat_member"` // optional
|
||||
NewChatTitle string `json:"new_chat_title"` // optional
|
||||
|
@ -495,6 +496,11 @@ type Poll struct {
|
|||
CorrectOptionID int `json:"correct_option_id"` // optional
|
||||
}
|
||||
|
||||
// Dice represents a single dice value.
|
||||
type Dice struct {
|
||||
Value int `json:"value"`
|
||||
}
|
||||
|
||||
// UserProfilePhotos contains a set of user profile photos.
|
||||
type UserProfilePhotos struct {
|
||||
TotalCount int `json:"total_count"`
|
||||
|
@ -1067,11 +1073,18 @@ type PreCheckoutQuery struct {
|
|||
|
||||
// StickerSet is a collection of stickers.
|
||||
type StickerSet struct {
|
||||
Name string `json:"name"`
|
||||
Title string `json:"title"`
|
||||
IsAnimated bool `json:"is_animated"`
|
||||
ContainsMasks bool `json:"contains_masks"`
|
||||
Stickers []Sticker `json:"stickers"`
|
||||
Name string `json:"name"`
|
||||
Title string `json:"title"`
|
||||
IsAnimated bool `json:"is_animated"`
|
||||
ContainsMasks bool `json:"contains_masks"`
|
||||
Stickers []Sticker `json:"stickers"`
|
||||
Thumb *PhotoSize `json:"thumb"`
|
||||
}
|
||||
|
||||
// BotCommand represents Telegram's understanding of a command.
|
||||
type BotCommand struct {
|
||||
Command string `json:"command"`
|
||||
Description string `json:"description"`
|
||||
}
|
||||
|
||||
// BaseInputMedia is a base type for the InputMedia types.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue