Thumbnail

rani/matterbridge.git

Clone URL: https://git.buni.party/rani/matterbridge.git

commit a8ffbaec729ed10016a94b01abd63647034f97b0 Author: Wim <wim@42.be> Date: Sun Nov 12 18:09:38 2017 +0000 Add the download actually to the message (telegram) diff --git a/bridge/telegram/telegram.go b/bridge/telegram/telegram.go index 43553f0..197f760 100644 --- a/bridge/telegram/telegram.go +++ b/bridge/telegram/telegram.go @@ -2077 +2077 @@ 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   }