X-Git-Url: https://git.giacomolli.uk/onechat/blobdiff_plain/4a42f7f208cbfead335eba9ebe615b35b1742130..f4509310b5abe5012cb83bed3960404e8fa92217:/telegram.go?ds=inline diff --git a/telegram.go b/telegram.go index 3d676d6..78a1c7a 100644 --- a/telegram.go +++ b/telegram.go @@ -585,13 +585,13 @@ func (b *TelegramBot) sendOutage() *TelegramOutage { } // Notify queues event for the chat. It never blocks, so a slow network does not -// stop the agent. The WhatsApp batches and the runs of the schedules do not go -// to the chat: the reply of the agent tells the user what needs the user. +// stop the agent. External events, WhatsApp batches, and schedule runs do not +// go to the chat: the reply of the agent tells the user what needs the user. 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":