X-Git-Url: https://git.giacomolli.uk/onechat/blobdiff_plain/bd7da3557dc7a17020931f5a49ed5007fa81a645..d7bc0a6ac452bfc646610fdfd7c8eccb5c55218f:/telegram.go?ds=inline diff --git a/telegram.go b/telegram.go index 85b0f44..a024e82 100644 --- a/telegram.go +++ b/telegram.go @@ -313,11 +313,7 @@ poll: continue poll } - if err != nil { - return fmt.Errorf("handle Telegram update: %w", err) - } - - return nil + return fmt.Errorf("handle Telegram update: %w", err) } imageOutage.End() @@ -595,7 +591,7 @@ func (b *TelegramBot) Notify(event Event) { switch event.Kind { case "busy", "idle", "reply", "error", "notice", "subagent": case "work": - if event.Source == whatsappSource || event.Source == scheduleSource { + if event.Source == whatsappSource || event.Source == scheduleSource || event.Source == notifySource { return } case "user":