|
|
@ -410,7 +410,7 @@ type InlineKeyboardButton struct { |
|
|
|
SwitchInlineQuery *string `json:"switch_inline_query,omitempty"` // optional
|
|
|
|
SwitchInlineQuery *string `json:"switch_inline_query,omitempty"` // optional
|
|
|
|
SwitchInlineQueryCurrentChat *string `json:"switch_inline_query_current_chat,omitempty"` // optional
|
|
|
|
SwitchInlineQueryCurrentChat *string `json:"switch_inline_query_current_chat,omitempty"` // optional
|
|
|
|
CallbackGame *CallbackGame `json:"callback_game,omitempty"` // optional
|
|
|
|
CallbackGame *CallbackGame `json:"callback_game,omitempty"` // optional
|
|
|
|
Pay bool `json:"pay,omitempty"` // optional
|
|
|
|
Pay bool `json:"pay,omitempty"` // optional
|
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
// CallbackQuery is data sent when a keyboard button with callback data
|
|
|
|
// CallbackQuery is data sent when a keyboard button with callback data
|
|
|
@ -771,3 +771,12 @@ type PreCheckoutQuery struct { |
|
|
|
ShippingOptionID string `json:"shipping_option_id,omitempty"` |
|
|
|
ShippingOptionID string `json:"shipping_option_id,omitempty"` |
|
|
|
OrderInfo *OrderInfo `json:"order_info,omitempty"` |
|
|
|
OrderInfo *OrderInfo `json:"order_info,omitempty"` |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
type Error struct { |
|
|
|
|
|
|
|
Message string |
|
|
|
|
|
|
|
ResponseParameters |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
func (e Error) Error() string { |
|
|
|
|
|
|
|
return e.Message |
|
|
|
|
|
|
|
} |
|
|
|