From 2ddc4f7ae91a51bc8fa279fdab3c7d64600e1a25 Mon Sep 17 00:00:00 2001 From: Wim Date: Sun, 18 Jun 2017 15:44:54 +0200 Subject: Add UserID to each message. Closes #200 --- 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 d6b7597a..9f7af284 100644 --- a/bridge/telegram/telegram.go +++ b/bridge/telegram/telegram.go @@ -132,7 +132,7 @@ 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} + b.Remote <- config.Message{Username: username, Text: text, Channel: channel, Account: b.Account, UserID: strconv.Itoa(message.From.ID)} } } } -- cgit v1.2.3