diff options
author | Wim <wim@42.be> | 2017-09-19 21:41:35 +0200 |
---|---|---|
committer | Wim <wim@42.be> | 2017-09-19 21:41:35 +0200 |
commit | c088e45d85828966d333211b85f1a250753a9979 (patch) | |
tree | 1043f420dccc34b9027c22da3e7dea8ae71b5537 /bridge/telegram | |
parent | d59c51a94b624ac6933cdbf1468211eac8546632 (diff) | |
download | matterbridge-msglm-c088e45d85828966d333211b85f1a250753a9979.tar.gz matterbridge-msglm-c088e45d85828966d333211b85f1a250753a9979.tar.bz2 matterbridge-msglm-c088e45d85828966d333211b85f1a250753a9979.zip |
Add more debug info (telegram)
Diffstat (limited to 'bridge/telegram')
-rw-r--r-- | bridge/telegram/telegram.go | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/bridge/telegram/telegram.go b/bridge/telegram/telegram.go index 937dfe9c..d6acf49c 100644 --- a/bridge/telegram/telegram.go +++ b/bridge/telegram/telegram.go @@ -162,7 +162,9 @@ 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 } } } |