summaryrefslogtreecommitdiffstats
path: root/bridge/telegram
diff options
context:
space:
mode:
authorWim <wim@42.be>2017-11-12 18:09:38 +0100
committerWim <wim@42.be>2017-11-12 18:09:38 +0100
commit46f5acc4f93bec66e868cac77e2be30550614e4e (patch)
tree16ab55a9ea43a526708531828cf0013401357c27 /bridge/telegram
parent95d4dcaeb3b8b2e087dcda3e3949634e0872efaa (diff)
downloadmatterbridge-msglm-46f5acc4f93bec66e868cac77e2be30550614e4e.tar.gz
matterbridge-msglm-46f5acc4f93bec66e868cac77e2be30550614e4e.tar.bz2
matterbridge-msglm-46f5acc4f93bec66e868cac77e2be30550614e4e.zip
Add the download actually to the message (telegram)
Diffstat (limited to 'bridge/telegram')
-rw-r--r--bridge/telegram/telegram.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/bridge/telegram/telegram.go b/bridge/telegram/telegram.go
index 43553f07..197f7606 100644
--- a/bridge/telegram/telegram.go
+++ b/bridge/telegram/telegram.go
@@ -207,7 +207,7 @@ func (b *Btelegram) handleRecv(updates <-chan tgbotapi.Update) {
if text != "" || len(fmsg.Extra) > 0 {
flog.Debugf("Sending message from %s on %s to gateway", username, b.Account)
- msg := config.Message{Username: username, Text: text, Channel: channel, Account: b.Account, UserID: strconv.Itoa(message.From.ID), ID: strconv.Itoa(message.MessageID)}
+ msg := config.Message{Username: username, Text: text, Channel: channel, Account: b.Account, UserID: strconv.Itoa(message.From.ID), ID: strconv.Itoa(message.MessageID), Extra: fmsg.Extra}
flog.Debugf("Message is %#v", msg)
b.Remote <- msg
}