Thumbnail

rani/matterbridge.git

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

commit 97ddb3c5b916518a5acd55d44d52940ea28095d1 Author: Wim <wim@42.be> Date: Tue Sep 19 21:41:35 2017 +0000 Add more debug info (telegram) diff --git a/bridge/telegram/telegram.go b/bridge/telegram/telegram.go index 937dfe9..d6acf49 100644 --- a/bridge/telegram/telegram.go +++ b/bridge/telegram/telegram.go @@ -1627 +1629 @@ func (b *Btelegram) handleRecv(updates <-chan tgbotapi.Update) {   }   if text != "" {   flog.Debugf("Sending message from %s on %s to gateway", username, b.Account) - b.Remote <- 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)} + flog.Debugf("Message is %#v", msg) + b.Remote <- msg   }   }  }