Skip to content

Commit

Permalink
JSON fix for buttons.
Browse files Browse the repository at this point in the history
  • Loading branch information
Ian Byrd committed Dec 11, 2017
1 parent a2d28e6 commit 62ac17d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion callbacks.go
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ type InlineButton struct {
Data string `json:"callback_data,omitempty"`
InlineQuery string `json:"switch_inline_query,omitempty"`

Action func(*Callback)
Action func(*Callback) `json:"-"`
}

// CallbackUnique returns InlineButto.Unique.
Expand Down
2 changes: 1 addition & 1 deletion options.go
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,7 @@ type ReplyButton struct {
Contact bool `json:"request_contact,omitempty"`
Location bool `json:"request_location,omitempty"`

Action func(*Callback)
Action func(*Callback) `json:"-"`
}

// InlineKeyboardMarkup represents an inline keyboard that appears
Expand Down

0 comments on commit 62ac17d

Please sign in to comment.