X-Git-Url: https://git.giacomolli.uk/onechat/blobdiff_plain/56d959f2d573eef1be5c04d0bf1659fa30d36e7c..459656ed8c15847d325f07758e4a775935411c3d:/telegram.go?ds=inline diff --git a/telegram.go b/telegram.go index 814f454..e77ea69 100644 --- a/telegram.go +++ b/telegram.go @@ -160,13 +160,13 @@ type TelegramBot struct { } // Notify queues event for the chat. It never blocks, so a slow network does not -// stop the agent. The WhatsApp batches do not go to the chat: the reply of the -// agent tells the user what needs the user. +// 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. func (b *TelegramBot) Notify(event Event) { switch event.Kind { case "busy", "idle", "reply", "error", "notice", "subagent": case "work": - if event.Source == whatsappSource { + if event.Source == whatsappSource || event.Source == scheduleSource { return } case "user":