add missing captions on voiceclip uploads
This commit is contained in:
parent
43a9b41dc3
commit
edabc2b597
@ -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))
|
||||
}()
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user