]> git.giacomolli.uk - onechat/blobdiff - telegram.go
Send the compaction view in block messages
[onechat] / telegram.go
index 814f4544a2e7c942aeb9cb2741774a7960345f6f..e77ea69de90e5a69c3047b6bb2c7a20a5f8273c3 100644 (file)
@@ -160,13 +160,13 @@ type TelegramBot struct {
 }
 
 // Notify queues event for the chat. It never blocks, so a slow network does not
 }
 
 // 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":
 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":
                        return
                }
        case "user":