diff options
Diffstat (limited to 'bridge/telegram')
-rw-r--r-- | bridge/telegram/handlers.go | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/bridge/telegram/handlers.go b/bridge/telegram/handlers.go index fa8f2ffb..98b10207 100644 --- a/bridge/telegram/handlers.go +++ b/bridge/telegram/handlers.go @@ -125,6 +125,11 @@ func (b *Btelegram) handleRecv(updates <-chan tgbotapi.Update) { // handle groups message = b.handleGroups(&rmsg, message, update) + if message == nil { + b.Log.Error("message is nil, this shouldn't happen.") + continue + } + // set the ID's from the channel or group message rmsg.ID = strconv.Itoa(message.MessageID) rmsg.Channel = strconv.FormatInt(message.Chat.ID, 10) |