Fix InlineKeyboardButton type
parent
3763be308e
commit
71e0c25410
10
types.go
10
types.go
|
@ -356,11 +356,11 @@ type InlineKeyboardMarkup struct {
|
||||||
// CallbackGame, if set, MUST be first button in first row.
|
// CallbackGame, if set, MUST be first button in first row.
|
||||||
type InlineKeyboardButton struct {
|
type InlineKeyboardButton struct {
|
||||||
Text string `json:"text"`
|
Text string `json:"text"`
|
||||||
URL *string `json:"url,omitempty"` // optional
|
URL *string `json:"url,omitempty"` // optional
|
||||||
CallbackData *string `json:"callback_data,omitempty"` // optional
|
CallbackData *string `json:"callback_data,omitempty"` // optional
|
||||||
SwitchInlineQuery *string `json:"switch_inline_query,omitempty"` // optional
|
SwitchInlineQuery *string `json:"switch_inline_query,omitempty"` // optional
|
||||||
SwitchInlineQueryCurrentChat *string `json:"switch_inline_query_current_chat"` // optional
|
SwitchInlineQueryCurrentChat *string `json:"switch_inline_query_current_chat,omitempty"` // optional
|
||||||
CallbackGame *CallbackGame `json:"callback_game"` // optional
|
CallbackGame *CallbackGame `json:"callback_game,omitempty"` // optional
|
||||||
}
|
}
|
||||||
|
|
||||||
// CallbackQuery is data sent when a keyboard button with callback data
|
// CallbackQuery is data sent when a keyboard button with callback data
|
||||||
|
|
Loading…
Reference in New Issue