Merge pull request #70 from Jeiwan/fix_voiceconfig_caption Fix Caption in VoiceConfig
Syfaro syfaro@foxpaw.in
Wed, 19 Apr 2017 15:38:50 -0500
1 files changed,
6 insertions(+),
0 deletions(-)
jump to
M
configs.go
→
configs.go
@@ -482,6 +482,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 }@@ -492,6 +495,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