add support of parse_mode in EditMessageCaptionConfig
Oleksandr Savchuk mrxlinch@gmail.com
Mon, 30 Jul 2018 20:00:09 +0300
1 files changed,
5 insertions(+),
1 deletions(-)
jump to
M
configs.go
→
configs.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 }