add caption to audio

pull/59/head
Naser Mirzaei 9 years ago
parent a7f48eb2dd
commit 3944222325
  1. 4
      configs.go

@ -278,6 +278,7 @@ type AudioConfig struct {
Duration int
Performer string
Title string
Caption string
}
// values returns a url.Values representation of AudioConfig.
@ -295,6 +296,9 @@ func (config AudioConfig) values() (url.Values, error) {
if config.Title != "" {
v.Add("title", config.Title)
}
if config.Caption != "" {
v.Add("caption", config.Caption)
}
return v, nil
}