Merge master into develop.
This commit is contained in:
commit
6a6de7e674
6 changed files with 170 additions and 44 deletions
13
types.go
13
types.go
|
@ -676,7 +676,7 @@ type InlineQueryResultGame struct {
|
|||
Type string `json:"type"`
|
||||
ID string `json:"id"`
|
||||
GameShortName string `json:"game_short_name"`
|
||||
ReplyMarkup *InlineKeyboardMarkup `json:"reply_markup"`
|
||||
ReplyMarkup *InlineKeyboardMarkup `json:"reply_markup,omitempty"`
|
||||
}
|
||||
|
||||
// ChosenInlineResult is an inline query result chosen by a User
|
||||
|
@ -819,3 +819,14 @@ type InputMediaVideo struct {
|
|||
Height int `json:"height,omitempty"`
|
||||
Duration int `json:"duration,omitempty"`
|
||||
}
|
||||
|
||||
// Error is an error containing extra information returned by the Telegram API.
|
||||
type Error struct {
|
||||
Message string
|
||||
ResponseParameters
|
||||
}
|
||||
|
||||
// Error message string.
|
||||
func (e Error) Error() string {
|
||||
return e.Message
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue