diff options
author | Wim <wim@42.be> | 2017-11-12 18:09:38 +0100 |
---|---|---|
committer | Wim <wim@42.be> | 2017-11-12 18:09:38 +0100 |
commit | 46f5acc4f93bec66e868cac77e2be30550614e4e (patch) | |
tree | 16ab55a9ea43a526708531828cf0013401357c27 /bridge | |
parent | 95d4dcaeb3b8b2e087dcda3e3949634e0872efaa (diff) | |
download | matterbridge-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')
-rw-r--r-- | bridge/telegram/telegram.go | 2 |
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 } |