Fix Caption in VoiceConfig `values()` and `params()` methods of `VoiceConfig` don't process `Caption` field.
Ivan Kuznetsov me@jeiwan.ru
Sun, 15 Jan 2017 14:00:37 +0700
1 files changed,
6 insertions(+),
0 deletions(-)
jump to
M
configs.go
→
configs.go
@@ -474,6 +474,9 @@ v.Add(config.name(), config.FileID)
if config.Duration != 0 { v.Add("duration", strconv.Itoa(config.Duration)) } + if config.Caption != "" { + v.Add("caption", config.Caption) + } return v, nil }@@ -484,6 +487,9 @@ params, _ := config.BaseFile.params()
if config.Duration != 0 { params["duration"] = strconv.Itoa(config.Duration) + } + if config.Caption != "" { + params["caption"] = config.Caption } return params, nil