From 32d8a5246b7ca1be309461c1849148f7e270586c Mon Sep 17 00:00:00 2001 From: Maxim Lebedev Date: Fri, 6 Oct 2017 13:46:30 +0500 Subject: [PATCH] :rotating_light: Fixed capitalization --- answer_pre_checkout_query.go | 2 +- answer_shipping_query.go | 2 +- types.go | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/answer_pre_checkout_query.go b/answer_pre_checkout_query.go index a6585ec..41b2dca 100644 --- a/answer_pre_checkout_query.go +++ b/answer_pre_checkout_query.go @@ -9,7 +9,7 @@ type AnswerPreCheckoutQueryParameters struct { // Specify True if everything is alright (goods are available, etc.) and the // bot is ready to proceed with the order. Use False if there are any // problems. - OK bool `json:"ok"` + Ok bool `json:"ok"` // Required if ok is False. Error message in human readable form that // explains the reason for failure to proceed with the checkout (e.g. "Sorry, diff --git a/answer_shipping_query.go b/answer_shipping_query.go index 890d498..9338d89 100644 --- a/answer_shipping_query.go +++ b/answer_shipping_query.go @@ -9,7 +9,7 @@ type AnswerShippingQueryParameters struct { // Specify True if delivery to the specified address is possible and False // if there are any problems (for example, if delivery to the specified // address is not possible) - OK bool `json:"ok"` + Ok bool `json:"ok"` // Required if ok is True. A JSON-serialized array of available shipping // options. diff --git a/types.go b/types.go index b138c6b..bdc61f8 100644 --- a/types.go +++ b/types.go @@ -312,7 +312,7 @@ type ( // For "text_link" only, url that will be opened after user taps on the // text - Url string `json:"url,omitempty"` + URL string `json:"url,omitempty"` // For "text_mention" only, the mentioned user User *User `json:"user,omitempty"`