From 7923cfe8f856c719de8f91376d6b588d9d45d0f7 Mon Sep 17 00:00:00 2001 From: Wim Date: Thu, 29 Nov 2018 23:03:50 +0100 Subject: [PATCH] Fix telegram crash #620 --- bridge/telegram/handlers.go | 4 ++-- 1 file 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)