all repos — telegram-bot-api @ 5b58a2a70185f0706b09ccdd7af5c02f1a94b5ba

Golang bindings for the Telegram Bot API

Omitempty for ReplyMarkup.
Syfaro syfaro@foxpaw.in
Wed, 13 Apr 2016 09:30:52 -0500
commit

5b58a2a70185f0706b09ccdd7af5c02f1a94b5ba

parent

ee1d537565e64ce3f4fc8fd94bfd63a612fb432c

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

jump to
M types.gotypes.go

@@ -348,7 +348,7 @@ Type string `json:"type"` // required

ID string `json:"id"` // required Title string `json:"title"` // required InputMessageContent interface{} `json:"input_message_content"` // required - ReplyMarkup *InlineKeyboardMarkup `json:"reply_markup"` + ReplyMarkup *InlineKeyboardMarkup `json:"reply_markup,omitempty"` URL string `json:"url"` HideURL bool `json:"hide_url"` Description string `json:"description"`

@@ -369,7 +369,7 @@ ThumbURL string `json:"thumb_url"`

Title string `json:"title"` Description string `json:"description"` Caption string `json:"caption"` - ReplyMarkup *InlineKeyboardMarkup `json:"reply_markup"` + ReplyMarkup *InlineKeyboardMarkup `json:"reply_markup,omitempty"` InputMessageContent interface{} `json:"input_message_content"` }

@@ -383,7 +383,7 @@ Height int `json:"gif_height"`

ThumbURL string `json:"thumb_url"` Title string `json:"title"` Caption string `json:"caption"` - ReplyMarkup *InlineKeyboardMarkup `json:"reply_markup"` + ReplyMarkup *InlineKeyboardMarkup `json:"reply_markup,omitempty"` InputMessageContent interface{} `json:"input_message_content"` }

@@ -397,7 +397,7 @@ Height int `json:"mpeg4_height"`

ThumbURL string `json:"thumb_url"` Title string `json:"title"` Caption string `json:"caption"` - ReplyMarkup *InlineKeyboardMarkup `json:"reply_markup"` + ReplyMarkup *InlineKeyboardMarkup `json:"reply_markup,omitempty"` InputMessageContent interface{} `json:"input_message_content"` }

@@ -414,7 +414,7 @@ Width int `json:"video_width"`

Height int `json:"video_height"` Duration int `json:"video_duration"` Description string `json:"description"` - ReplyMarkup *InlineKeyboardMarkup `json:"reply_markup"` + ReplyMarkup *InlineKeyboardMarkup `json:"reply_markup,omitempty"` InputMessageContent interface{} `json:"input_message_content"` }

@@ -426,7 +426,7 @@ URL string `json:"audio_url"` // required

Title string `json:"title"` // required Performer string `json:"performer"` Duration int `json:"audio_duration"` - ReplyMarkup *InlineKeyboardMarkup `json:"reply_markup"` + ReplyMarkup *InlineKeyboardMarkup `json:"reply_markup,omitempty"` InputMessageContent interface{} `json:"input_message_content"` }

@@ -437,7 +437,7 @@ ID string `json:"id"` // required

URL string `json:"voice_url"` // required Title string `json:"title"` // required Duration int `json:"voice_duration"` - ReplyMarkup *InlineKeyboardMarkup `json:"reply_markup"` + ReplyMarkup *InlineKeyboardMarkup `json:"reply_markup,omitempty"` InputMessageContent interface{} `json:"input_message_content"` }

@@ -450,7 +450,7 @@ Caption string `json:"caption"`

URL string `json:"document_url"` // required MimeType string `json:"mime_type"` // required Description string `json:"description"` - ReplyMarkup *InlineKeyboardMarkup `json:"reply_markup"` + ReplyMarkup *InlineKeyboardMarkup `json:"reply_markup,omitempty"` InputMessageContent interface{} `json:"input_message_content"` ThumbURL string `json:"thumb_url"` ThumbWidth int `json:"thumb_width"`

@@ -464,7 +464,7 @@ ID string `json:"id"` // required

Latitude float64 `json:"latitude"` // required Longitude float64 `json:"longitude"` // required Title string `json:"title"` // required - ReplyMarkup *InlineKeyboardMarkup `json:"reply_markup"` + ReplyMarkup *InlineKeyboardMarkup `json:"reply_markup,omitempty"` InputMessageContent interface{} `json:"input_message_content"` ThumbURL string `json:"thumb_url"` ThumbWidth int `json:"thumb_width"`