mirror of
https://github.com/42wim/matterbridge.git
synced 2024-11-24 11:42:03 -08:00
Add support for telegram captions
This commit is contained in:
parent
6a7412bf2b
commit
ff0bc21062
@ -279,6 +279,10 @@ func (b *Btelegram) handleDownload(rmsg *config.Message, message *tgbotapi.Messa
|
|||||||
text, name, url = b.getDownloadInfo(photos[len(photos)-1].FileID, "", true)
|
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 is empty we didn't match a thing to download
|
||||||
if name == "" {
|
if name == "" {
|
||||||
return nil
|
return nil
|
||||||
|
Loading…
Reference in New Issue
Block a user