mirror of
https://github.com/cwinfo/matterbridge.git
synced 2024-11-22 16:20:26 +00:00
Revert "Bail if any vars are nil, not if all (telegram) (#778)"
This reverts commit efd2c99862
.
This commit is contained in:
parent
aba9e4f3be
commit
8cc2d3b4fe
@ -109,8 +109,8 @@ func (b *Btelegram) handleRecv(updates <-chan tgbotapi.Update) {
|
|||||||
for update := range updates {
|
for update := range updates {
|
||||||
b.Log.Debugf("== Receiving event: %#v", update.Message)
|
b.Log.Debugf("== Receiving event: %#v", update.Message)
|
||||||
|
|
||||||
if update.Message == nil || update.ChannelPost == nil ||
|
if update.Message == nil && update.ChannelPost == nil &&
|
||||||
update.EditedMessage == nil || update.EditedChannelPost == nil {
|
update.EditedMessage == nil && update.EditedChannelPost == nil {
|
||||||
b.Log.Error("Getting nil messages, this shouldn't happen.")
|
b.Log.Error("Getting nil messages, this shouldn't happen.")
|
||||||
continue
|
continue
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user