add support of parse_mode in EditMessageCaptionConfig
parent
0b68c9b790
commit
af72b0a3db
|
@ -822,13 +822,17 @@ func (config EditMessageTextConfig) method() string {
|
||||||
// EditMessageCaptionConfig allows you to modify the caption of a message.
|
// EditMessageCaptionConfig allows you to modify the caption of a message.
|
||||||
type EditMessageCaptionConfig struct {
|
type EditMessageCaptionConfig struct {
|
||||||
BaseEdit
|
BaseEdit
|
||||||
Caption string
|
Caption string
|
||||||
|
ParseMode string
|
||||||
}
|
}
|
||||||
|
|
||||||
func (config EditMessageCaptionConfig) values() (url.Values, error) {
|
func (config EditMessageCaptionConfig) values() (url.Values, error) {
|
||||||
v, _ := config.BaseEdit.values()
|
v, _ := config.BaseEdit.values()
|
||||||
|
|
||||||
v.Add("caption", config.Caption)
|
v.Add("caption", config.Caption)
|
||||||
|
if config.ParseMode != "" {
|
||||||
|
v.Add("parse_mode", config.ParseMode)
|
||||||
|
}
|
||||||
|
|
||||||
return v, nil
|
return v, nil
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue