From 9089fa1b340375b47c62dd51807009301ff73f88 Mon Sep 17 00:00:00 2001 From: Sergey Date: Thu, 22 Aug 2019 07:26:19 +0300 Subject: [PATCH] Add LoginUrl for InlineKeyboardButton --- types.go | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/types.go b/types.go index 52cb36c..2979a89 100644 --- a/types.go +++ b/types.go @@ -473,6 +473,7 @@ type InlineKeyboardMarkup struct { type InlineKeyboardButton struct { Text string `json:"text"` URL *string `json:"url,omitempty"` // optional + LoginUrl *LoginUrl `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 @@ -480,6 +481,14 @@ type InlineKeyboardButton struct { Pay bool `json:"pay,omitempty"` // optional } +//LoginUrl +type LoginUrl struct { + URL string `json:"url"` + ForwardText *string `json:"forward_text,omitempty"` + BotUsername *string `json:"bot_username,omitempty"` + RequestWriteAccess *bool `json:"request_write_access,omitempty"` +} + // CallbackQuery is data sent when a keyboard button with callback data // is clicked. type CallbackQuery struct {