Update Action field in reply and inline buttons

pull/269/head
unknown 4 years ago
parent fcff7569ac
commit 0cfb922e9e

@ -76,6 +76,8 @@ type InlineButton struct {
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:"-"`
}

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

Loading…
Cancel
Save