Add more omitempty.
parent
c0eb5db6c3
commit
e8e55fe41a
6
types.go
6
types.go
|
@ -316,9 +316,9 @@ type InlineKeyboardMarkup struct {
|
||||||
// will change behavior.
|
// will change behavior.
|
||||||
type InlineKeyboardButton struct {
|
type InlineKeyboardButton struct {
|
||||||
Text string `json:"text"`
|
Text string `json:"text"`
|
||||||
URL *string `json:"url"` // optional
|
URL *string `json:"url,omitempty"` // optional
|
||||||
CallbackData *string `json:"callback_data"` // optional
|
CallbackData *string `json:"callback_data,omitempty"` // optional
|
||||||
SwitchInlineQuery *string `json:"switch_inline_query"` // optional
|
SwitchInlineQuery *string `json:"switch_inline_query,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