From 7e8ed3e9b8685fd44a2a1538d42724f22c0e65d7 Mon Sep 17 00:00:00 2001 From: selfhoster1312 Date: Mon, 27 Jan 2025 12:24:35 +0100 Subject: [PATCH] telegram: Send uploaded file URL to bridges --- bridge/telegram/handlers.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/bridge/telegram/handlers.go b/bridge/telegram/handlers.go index 8e7dc7ba..c83ae8fa 100644 --- a/bridge/telegram/handlers.go +++ b/bridge/telegram/handlers.go @@ -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 }