telegram: Send uploaded file URL to bridges

This commit is contained in:
selfhoster1312 2025-01-27 12:24:35 +01:00
parent c4157a4d5b
commit 7e8ed3e9b8

View File

@ -346,7 +346,7 @@ func (b *Btelegram) handleDownloadAvatar(userid int64, channel string) {
b.Log.Errorf("download %s failed %#v", url, err)
return
}
helper.HandleDownloadData(b.Log, &rmsg, name, rmsg.Text, "", data, b.General)
helper.HandleDownloadData(b.Log, &rmsg, name, rmsg.Text, url, data, b.General)
b.Remote <- rmsg
}
}
@ -440,7 +440,7 @@ func (b *Btelegram) handleDownload(rmsg *config.Message, message *tgbotapi.Messa
name = strings.Replace(name, ".oga", ".ogg", 1)
}
helper.HandleDownloadData(b.Log, rmsg, name, message.Caption, "", data, b.General)
helper.HandleDownloadData(b.Log, rmsg, name, message.Caption, url, data, b.General)
return nil
}