This commit is contained in:
leko
2024-08-30 12:32:54 +08:00
committed by GitHub

View File

@@ -409,6 +409,10 @@ func (b *Btelegram) handleDownload(rmsg *config.Message, message *tgbotapi.Messa
text, name, url = b.getDownloadInfo(photos[len(photos)-1].FileID, "", true)
}
if message.Caption != "" {
text = message.Caption + "\n" + text
}
// if name is empty we didn't match a thing to download
if name == "" {
return nil