From e5037a53fb7b9113815cd97d5418932150bc5959 Mon Sep 17 00:00:00 2001 From: Andrey Date: Wed, 20 Apr 2016 12:40:49 +0300 Subject: [PATCH] Fix typo. --- api.go | 4 ++-- types.go | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/api.go b/api.go index 317331b..f2ffead 100644 --- a/api.go +++ b/api.go @@ -4,7 +4,7 @@ type SendMessageOptions struct { DisableNotification bool `json:"disable_notification,omitempty"` ReplyToMessageId int64 `json:"reply_to_message_id,omitempty"` ParseMode ParseMode `json:"parse_mode,omitempty"` - DisableWebPagePreview bool `json:"disable_web_page_preview",omitempty` + DisableWebPagePreview bool `json:"disable_web_page_preview,omitempty"` ReplyMarkup ReplyMarkup `json:"reply_markup,omitempty"` } @@ -43,7 +43,7 @@ func NewSendPhotoParams(chatId int64, photo string, options *SendPhotoOptions) * type EditMessageTextOptions struct { ParseMode ParseMode `json:"parse_mode,omitempty"` - DisableWebPagePreview bool `json:"disable_web_page_preview",omitempty` + DisableWebPagePreview bool `json:"disable_web_page_preview,omitempty"` ReplyMarkup ReplyMarkup `json:"reply_markup,omitempty"` } diff --git a/types.go b/types.go index f3c93df..da5a8ba 100644 --- a/types.go +++ b/types.go @@ -155,7 +155,7 @@ type Message struct { Caption string `json:"caption"` Contact *Contact `json:"contact"` Location *Location `json:"location"` - Venue *Venue `json:"venue` + Venue *Venue `json:"venue"` NewChatMember *User `json:"new_chat_member"` LeftChatMember *User `json:"left_chat_member"` NewChatTitle string `json:"new_chat_title"`