diff options
author | Wim <wim@42.be> | 2017-11-12 11:46:32 +0100 |
---|---|---|
committer | Wim <wim@42.be> | 2017-11-12 11:46:32 +0100 |
commit | c0f9d86287e052044f6e9f691ca34820685fe3ad (patch) | |
tree | 56e3f660bc42a5d9e9a7582f53b6e1b472321ef3 /bridge | |
parent | bcdecdaa73531464084b060f2777887befc0382d (diff) | |
download | matterbridge-msglm-c0f9d86287e052044f6e9f691ca34820685fe3ad.tar.gz matterbridge-msglm-c0f9d86287e052044f6e9f691ca34820685fe3ad.tar.bz2 matterbridge-msglm-c0f9d86287e052044f6e9f691ca34820685fe3ad.zip |
Fix telegram photo/document input handling (telegram)
Diffstat (limited to 'bridge')
-rw-r--r-- | bridge/telegram/telegram.go | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/bridge/telegram/telegram.go b/bridge/telegram/telegram.go index fa493c2c..19d40c30 100644 --- a/bridge/telegram/telegram.go +++ b/bridge/telegram/telegram.go @@ -178,12 +178,11 @@ 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 |