From 46f5acc4f93bec66e868cac77e2be30550614e4e Mon Sep 17 00:00:00 2001 From: Wim Date: Sun, 12 Nov 2017 18:09:38 +0100 Subject: Add the download actually to the message (telegram) --- bridge/telegram/telegram.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'bridge/telegram') 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 } -- cgit v1.2.3