Add more omitempty.
This commit is contained in:
parent
c0eb5db6c3
commit
e8e55fe41a
1 changed files with 3 additions and 3 deletions
6
types.go
6
types.go
|
@ -316,9 +316,9 @@ type InlineKeyboardMarkup struct {
|
|||
// will change behavior.
|
||||
type InlineKeyboardButton struct {
|
||||
Text string `json:"text"`
|
||||
URL *string `json:"url"` // optional
|
||||
CallbackData *string `json:"callback_data"` // optional
|
||||
SwitchInlineQuery *string `json:"switch_inline_query"` // optional
|
||||
URL *string `json:"url,omitempty"` // optional
|
||||
CallbackData *string `json:"callback_data,omitempty"` // optional
|
||||
SwitchInlineQuery *string `json:"switch_inline_query,omitempty"` // optional
|
||||
}
|
||||
|
||||
// CallbackQuery is data sent when a keyboard button with callback data
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue