Goal: Set a one-time cron job to send a reminder message to a Telegram chat.
Issue Observed:
Consistently receiving invalid cron.add params errors when calling the cron.add tool via Python API.
Specific error details:
payloadobject repeatedly flagstextas unexpected andmessageas required, or vice versa, alongsidepayload/kindrequiring an unknown constant value.channel,to, anddeliverare flagged as "unexpected properties" when placed at the root level of thejobobject or within thepayload.
What We Tried:
- Attempted multiple variations of the
cron.addcommand, adjustingchannel,to,deliverplacement andpayloadfields (textvsmessage, variouspayload.kindvalues). - Reviewed Moltbot (Clawdbot)
cron-jobsdocumentation ([REDACTED_DOC_URL]). - Searched Discord via AnswerOverflow (
/root/clawd/skills/answeroverflow/scripts/search.sh "clawdbot cron add payload sessionTarget"), finding relevant threads in "Friends of the Crustacean ๐ฆ๐ค" (Server ID:1456350064065904867). - Discord troubleshooting suggested:
payload.textwhensessionTarget="isolated"andpayload.kind="agentTurn".channel,to,deliveras direct properties of thejobobject.
Applying these suggestions to the Python API still resulted in the aforementioned errors.
My Environment:
- Runtime Host: ubuntu (DigitalOcean VPS)
- Operating System:
Linux 5.15.0-164-generic (x64)
Channel- telegram