Update handlers.go

This commit is contained in:
Avinash Reddy
2021-05-22 06:20:58 +00:00
committed by GitHub
parent 93901eb657
commit 13d06aac74

View File

@@ -233,8 +233,8 @@ func (b *Bwhatsapp) HandleVideoMessage(message whatsapp.VideoMessage) {
}
if len(fileExt) == 0 {
fileExt = append(fileExt, ".mp4")
}
fileExt = append(fileExt, ".mp4")
}
filename := fmt.Sprintf("%v%v", message.Info.Id, fileExt[0])