Merge pull request #90 from yanzay/master

[Fix #89] Add caption to Video params.
bot-api-6.1
Syfaro 2017-05-14 16:28:23 -05:00 committed by GitHub
commit baefeb3388
1 changed files with 4 additions and 0 deletions

View File

@ -451,6 +451,10 @@ func (config VideoConfig) values() (url.Values, error) {
func (config VideoConfig) params() (map[string]string, error) { func (config VideoConfig) params() (map[string]string, error) {
params, _ := config.BaseFile.params() params, _ := config.BaseFile.params()
if config.Caption != "" {
params["caption"] = config.Caption
}
return params, nil return params, nil
} }