all repos — telegram-bot-api @ ff42d6f7d1787d267bedf28764f69107820dd0fa

Golang bindings for the Telegram Bot API

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
commit

ff42d6f7d1787d267bedf28764f69107820dd0fa

parent

937de558bd97e1bd0c9800eb7082c227fe56d1e6

1 files changed, 6 insertions(+), 0 deletions(-)

jump to
M configs.goconfigs.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