commit 3426638955813692fd2f317d3c9e7c32a2d8e1b2
Author: Wim <wim@42.be>
Date: Sun Nov 12 11:46:32 2017 +0000
diff --git a/bridge/telegram/telegram.go b/bridge/telegram/telegram.go
index fa493c2..19d40c3 100644
--- a/bridge/telegram/telegram.go
+++ b/bridge/telegram/telegram.go
@@ -17812 +17811 @@ func (b *Btelegram) handleRecv(updates <-chan tgbotapi.Update) {
if message.Video != nil {
b.handleDownload(message.Video, &fmsg)
}
- if message.Photo != nil && b.Config.UseInsecureURL {
+ if message.Photo != nil {
b.handleDownload(message.Photo, &fmsg)
}
- if message.Document != nil && b.Config.UseInsecureURL {
+ if message.Document != nil {
b.handleDownload(message.Sticker, &fmsg)
- text = text + " " + message.Document.FileName + " : " + b.getFileDirectURL(message.Document.FileID)
}
// quote the previous message