Merge ff0bc21062
into c4157a4d5b
This commit is contained in:
commit
cf902909b6
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user