all repos — telegram-bot-api @ af72b0a3dbea69429d85ead3ccc39e22f4b83eef

Golang bindings for the Telegram Bot API

add support of parse_mode in EditMessageCaptionConfig
Oleksandr Savchuk mrxlinch@gmail.com
Mon, 30 Jul 2018 20:00:09 +0300
commit

af72b0a3dbea69429d85ead3ccc39e22f4b83eef

parent

0b68c9b7906ce2b3af7c9a42053f32c286b17801

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

jump to
M configs.goconfigs.go

@@ -822,13 +822,17 @@

// EditMessageCaptionConfig allows you to modify the caption of a message. type EditMessageCaptionConfig struct { BaseEdit - Caption string + Caption string + ParseMode string } func (config EditMessageCaptionConfig) values() (url.Values, error) { v, _ := config.BaseEdit.values() v.Add("caption", config.Caption) + if config.ParseMode != "" { + v.Add("parse_mode", config.ParseMode) + } return v, nil }