[Fix #89] Add caption to Video params.

bot-api-6.1
Alexey Grachov 2017-05-14 12:11:44 +03:00
parent 9f98d19464
commit e4602014c7
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) {
params, _ := config.BaseFile.params()
if config.Caption != "" {
params["caption"] = config.Caption
}
return params, nil
}