mirror of
https://github.com/42wim/matterbridge.git
synced 2025-04-18 01:42:20 +03:00
Merge ff0bc210628a3751020d5e80cd00cbe2e3862393 into c4157a4d5b49fce79c80a30730dc7c404bacd663
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…
x
Reference in New Issue
Block a user