X-Git-Url: http://git.giacomolli.uk/onechat/blobdiff_plain/e737005f89c7c663e1636830001730ad79396bdc..d008b46cbfc6348255e9b9a1fc009f0e4bd6aa2a:/telegram.go?ds=sidebyside 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":