From af72b0a3dbea69429d85ead3ccc39e22f4b83eef Mon Sep 17 00:00:00 2001 From: Oleksandr Savchuk Date: Mon, 30 Jul 2018 20:00:09 +0300 Subject: [PATCH] add support of parse_mode in EditMessageCaptionConfig --- configs.go | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/configs.go b/configs.go index e316ceb..a750182 100644 --- a/configs.go +++ b/configs.go @@ -822,13 +822,17 @@ func (config EditMessageTextConfig) method() string { // 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 }