#Cron simulating telegram prompt

1 messages · Page 1 of 1 (latest)

sturdy rampart
#

My agent is instructed to process the backlog item by item whenever it receives the letter 'k' via Telegram.

I have a cron job that sends 'k' to the agent every 20 minutes. However, I only receive a summary when the cron job fails. I would like to receive an update every time, just as I do when sending the message manually. Is this possible?

Could someone share the OpenClaw command to create such a cron configuration?

spring rampartBOT
cunning masonBOT
#

To help others find answers, you can mark your question as solved via Right click solution message -> Apps -> ✅ Mark Solution

spring rampartBOT
proven nymphBOT
#

Catching the exact flags so I don't hand you made-up cron syntax.

#

One more check, the CLI docs and live --help disagree a bit on session targeting, so I’m verifying the current behavior before I answer.

#

Yep, this is possible.

What you want is an agent-turn cron job with announce delivery, ideally bound to the same Telegram session.

If you create it from inside that Telegram conversation/session, use:

openclaw cron add \
  --name "Backlog kick" \
  --every 20m \
  --session current \
  --message "k" \
  --announce

If you create it from a shell, use the actual session/target explicitly:

#
openclaw cron add \
  --name "Backlog kick" \
  --every 20m \
  --session "session:<your-telegram-session-key>" \
  --message "k" \
  --announce \
  --channel telegram \
  --to "<your-chat-id>"

A couple of gotchas:

  • current only works when the job is created from the live chat/session. From plain CLI, it falls back to isolated.
  • If the run returns only NO_REPLY, cron suppresses delivery.
  • If you only get failure summaries now, the existing job is probably main/system-event style, or delivery is effectively off for success cases.