all repos — telegram-bot-api @ e4602014c78ff0d323bb30f38ae0f90afdb96ad6

Golang bindings for the Telegram Bot API

[Fix #89] Add caption to Video params.
Alexey Grachov grachov.alexey@gmail.com
Sun, 14 May 2017 12:11:44 +0300
commit

e4602014c78ff0d323bb30f38ae0f90afdb96ad6

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 }