From e343db6f72d2e9a1be8a4cb0137ad86808e3a7eb Mon Sep 17 00:00:00 2001 From: Wim Date: Sat, 15 Feb 2020 18:31:40 +0100 Subject: Make avatars download work with mediaserverdownload (telegram). Fixes #920 (#1012) --- bridge/telegram/handlers.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bridge/telegram/handlers.go b/bridge/telegram/handlers.go index a74a3f8a..56fd6540 100644 --- a/bridge/telegram/handlers.go +++ b/bridge/telegram/handlers.go @@ -95,7 +95,7 @@ func (b *Btelegram) handleUsername(rmsg *config.Message, message *tgbotapi.Messa } } // only download avatars if we have a place to upload them (configured mediaserver) - if b.General.MediaServerUpload != "" { + if b.General.MediaServerUpload != "" || (b.General.MediaServerDownload != "" && b.General.MediaDownloadPath != "") { b.handleDownloadAvatar(message.From.ID, rmsg.Channel) } } -- cgit v1.2.3