Add more debug info (telegram)

This commit is contained in:
Wim 2017-09-19 21:41:35 +02:00
parent d59c51a94b
commit c088e45d85
1 changed files with 3 additions and 1 deletions

View File

@ -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
}
}
}