From edabc2b597b16f92411c2f84217f3c5e865956bc Mon Sep 17 00:00:00 2001 From: mappu Date: Sun, 10 Jun 2018 11:14:08 +1200 Subject: [PATCH] add missing captions on voiceclip uploads --- NTFServer.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/NTFServer.go b/NTFServer.go index 89a759a..853e86a 100644 --- a/NTFServer.go +++ b/NTFServer.go @@ -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)) }() }