Thumbnail

rani/matterbridge.git

Clone URL: https://git.buni.party/rani/matterbridge.git

commit 5630b6c0a5da565820cd52a9869c3602db993314 Author: Wim <wim@42.be> Date: Thu Nov 29 23:03:50 2018 +0000 Fix telegram crash #620 diff --git a/bridge/telegram/handlers.go b/bridge/telegram/handlers.go index 810043b..8d6c268 100644 --- a/bridge/telegram/handlers.go +++ b/bridge/telegram/handlers.go @@ -11910 +11910 @@ 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)