Merge ff0bc210628a3751020d5e80cd00cbe2e3862393 into c4157a4d5b49fce79c80a30730dc7c404bacd663

This commit is contained in:
leko 2024-08-30 12:32:54 +08:00 committed by GitHub
commit cf902909b6
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

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