From 8cc2d3b4fe6104429642b1b63d363164ed5745de Mon Sep 17 00:00:00 2001 From: Wim Date: Fri, 5 Apr 2019 00:02:26 +0200 Subject: Revert "Bail if any vars are nil, not if all (telegram) (#778)" This reverts commit efd2c9986270a8a1dd35f896a80d6465fc52054b. --- bridge/telegram/handlers.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'bridge/telegram') diff --git a/bridge/telegram/handlers.go b/bridge/telegram/handlers.go index cbb1068e..fa8f2ffb 100644 --- a/bridge/telegram/handlers.go +++ b/bridge/telegram/handlers.go @@ -109,8 +109,8 @@ func (b *Btelegram) handleRecv(updates <-chan tgbotapi.Update) { for update := range updates { b.Log.Debugf("== Receiving event: %#v", update.Message) - if update.Message == nil || update.ChannelPost == nil || - update.EditedMessage == nil || update.EditedChannelPost == nil { + if update.Message == nil && update.ChannelPost == nil && + update.EditedMessage == nil && update.EditedChannelPost == nil { b.Log.Error("Getting nil messages, this shouldn't happen.") continue } -- cgit v1.2.3