add missing captions on voiceclip uploads

This commit is contained in:
mappu 2018-06-10 11:14:08 +12:00
parent 43a9b41dc3
commit edabc2b597

View File

@ -499,7 +499,7 @@ func (this *NTFServer) HandleGroupMessage(update telegram.Update) error {
if update.Message.Voice != nil {
go func() {
conUrl, err := this.ContentedUploadSync(update.Message.Voice.FileID, int64(update.Message.Voice.FileSize)) // no thumbnail fallback available
this.uploadAsyncComplete(userID, "voiceclip", conUrl, err, fmt.Sprintf("Voice clip (duration %ds): ", update.Message.Voice.Duration))
this.uploadAsyncComplete(userID, "voiceclip", conUrl, err, fmt.Sprintf("Voice clip (duration %ds): %s", update.Message.Voice.Duration, update.Message.Caption))
}()
}