all repos — telegram-bot-api @ baefeb33887a2ddf80ebcea4b0fa46d9f8598164

Golang bindings for the Telegram Bot API

Merge pull request #90 from yanzay/master

[Fix #89] Add caption to Video params.
Syfaro syfaro@foxpaw.in
Sun, 14 May 2017 16:28:23 -0500
commit

baefeb33887a2ddf80ebcea4b0fa46d9f8598164

parent

9f98d19464ddfabe93b1939a64538e4b6fbb9ad0

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

jump to
M configs.goconfigs.go

@@ -451,6 +451,10 @@ // params returns a map[string]string representation of VideoConfig.

func (config VideoConfig) params() (map[string]string, error) { params, _ := config.BaseFile.params() + if config.Caption != "" { + params["caption"] = config.Caption + } + return params, nil }