summaryrefslogtreecommitdiffstats
path: root/bridge
diff options
context:
space:
mode:
authorWim <wim@42.be>2017-11-12 17:49:10 +0100
committerWim <wim@42.be>2017-11-12 17:49:10 +0100
commit95d4dcaeb3b8b2e087dcda3e3949634e0872efaa (patch)
treea11716904b82e7172d196945ecb8624399c09db9 /bridge
parent64c542e6148c4fc089da1df72672fc7c2c20147b (diff)
downloadmatterbridge-msglm-95d4dcaeb3b8b2e087dcda3e3949634e0872efaa.tar.gz
matterbridge-msglm-95d4dcaeb3b8b2e087dcda3e3949634e0872efaa.tar.bz2
matterbridge-msglm-95d4dcaeb3b8b2e087dcda3e3949634e0872efaa.zip
Add more debug info (telegram)
Diffstat (limited to 'bridge')
-rw-r--r--bridge/telegram/telegram.go3
1 files changed, 1 insertions, 2 deletions
diff --git a/bridge/telegram/telegram.go b/bridge/telegram/telegram.go
index 654f8755..43553f07 100644
--- a/bridge/telegram/telegram.go
+++ b/bridge/telegram/telegram.go
@@ -247,7 +247,6 @@ func (b *Btelegram) handleDownload(file interface{}, msg *config.Message) {
url = b.getFileDirectURL(photos[len(photos)-1].FileID)
name = "photo"
text = " " + url
- fileid = v.FileID
case *tgbotapi.Document:
size = v.FileSize
url = b.getFileDirectURL(v.FileID)
@@ -267,7 +266,7 @@ func (b *Btelegram) handleDownload(file interface{}, msg *config.Message) {
if err != nil {
flog.Errorf("download %s failed %#v", url, err)
} else {
- flog.Debugf("download OK %#v %#v %#v", name, len(data), len(url))
+ flog.Debugf("download OK %#v %#v %#v", name, len(*data), len(url))
msg.Extra["file"] = append(msg.Extra["file"], config.FileInfo{Name: name, Data: data})
}
}