all repos — telegram-bot-api @ d74d1f34729fee667f5856b88c711e6f75fa4fd7

Golang bindings for the Telegram Bot API

Merge pull request #65 from sschepens/fix_inline_keyboard_button

Fix InlineKeyboardButton type
Syfaro syfaro@foxpaw.in
Sat, 31 Dec 2016 13:45:25 -0600
commit

d74d1f34729fee667f5856b88c711e6f75fa4fd7

parent

3763be308e2d0053ffe9369dbb9949f8ba59bd09

1 files changed, 5 insertions(+), 5 deletions(-)

jump to
M types.gotypes.go

@@ -356,11 +356,11 @@ //

// CallbackGame, if set, MUST be first button in first row. type InlineKeyboardButton struct { Text string `json:"text"` - URL *string `json:"url,omitempty"` // optional - CallbackData *string `json:"callback_data,omitempty"` // optional - SwitchInlineQuery *string `json:"switch_inline_query,omitempty"` // optional - SwitchInlineQueryCurrentChat *string `json:"switch_inline_query_current_chat"` // optional - CallbackGame *CallbackGame `json:"callback_game"` // optional + URL *string `json:"url,omitempty"` // optional + CallbackData *string `json:"callback_data,omitempty"` // optional + SwitchInlineQuery *string `json:"switch_inline_query,omitempty"` // optional + SwitchInlineQueryCurrentChat *string `json:"switch_inline_query_current_chat,omitempty"` // optional + CallbackGame *CallbackGame `json:"callback_game,omitempty"` // optional } // CallbackQuery is data sent when a keyboard button with callback data