options: remove unused Action fields from buttons

pull/300/head
Demian 4 years ago
parent c16b695ea6
commit f5f0b4b696

@ -75,10 +75,6 @@ type InlineButton struct {
InlineQuery string `json:"switch_inline_query,omitempty"`
InlineQueryChat string `json:"switch_inline_query_current_chat"`
Login *Login `json:"login_url,omitempty"`
// Not used anywhere.
// Will be removed in future releases.
Action func(*Callback) `json:"-"`
}
// With returns a copy of the button with data.

@ -136,10 +136,6 @@ type ReplyButton struct {
Contact bool `json:"request_contact,omitempty"`
Location bool `json:"request_location,omitempty"`
Poll PollType `json:"request_poll,omitempty"`
// Not used anywhere.
// Will be removed in future releases.
Action func(*Message) `json:"-"`
}
// InlineKeyboardMarkup represents an inline keyboard that appears

Loading…
Cancel
Save