summaryrefslogtreecommitdiffstats
path: root/bridge/telegram
diff options
context:
space:
mode:
authorWim <wim@42.be>2018-11-29 23:03:50 +0100
committerWim <wim@42.be>2018-11-29 23:03:50 +0100
commit7923cfe8f856c719de8f91376d6b588d9d45d0f7 (patch)
tree670d592322e2e9769cefc3a5cd1039e217bb7b30 /bridge/telegram
parentb51d0a9b05a602a5929a0da2e351b01d7f3b6c29 (diff)
downloadmatterbridge-msglm-7923cfe8f856c719de8f91376d6b588d9d45d0f7.tar.gz
matterbridge-msglm-7923cfe8f856c719de8f91376d6b588d9d45d0f7.tar.bz2
matterbridge-msglm-7923cfe8f856c719de8f91376d6b588d9d45d0f7.zip
Fix telegram crash #620
Diffstat (limited to 'bridge/telegram')
-rw-r--r--bridge/telegram/handlers.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/bridge/telegram/handlers.go b/bridge/telegram/handlers.go
index 810043b5..8d6c2689 100644
--- a/bridge/telegram/handlers.go
+++ b/bridge/telegram/handlers.go
@@ -119,10 +119,10 @@ func (b *Btelegram) handleRecv(updates <-chan tgbotapi.Update) {
rmsg := config.Message{Account: b.Account, Extra: make(map[string][]interface{})}
// handle channels
- b.handleChannels(&rmsg, message, update)
+ message = b.handleChannels(&rmsg, message, update)
// handle groups
- b.handleGroups(&rmsg, message, update)
+ message = b.handleGroups(&rmsg, message, update)
// set the ID's from the channel or group message
rmsg.ID = strconv.Itoa(message.MessageID)