Skip to content

feat(messages): cancel, edit and send now a scheduled message - #912

Open
leemour wants to merge 1 commit into
mainfrom
feat/scheduled-actions
Open

leemour wants to merge 1 commit into
mainfrom
feat/scheduled-actions

Conversation

@leemour

@leemour leemour commented Nov 19, 2026

Copy link
Copy Markdown
Member

Task

tg could schedule a message and list scheduled ones, but not cancel, edit or send one early. The owner cancelled in the Telegram app.

Why

Telegram numbers scheduled messages apart from sent ones. messages edit on a scheduled id failed with MESSAGE_ID_INVALID. messages delete with the same number could delete an old sent message in that chat.

What

  • tg <profile> messages scheduled cancel|edit|send <chat> <id> through cli-core 0.706.0's scheduled actions (feat(messages): cancel, edit and send now a scheduled message cli-core#3139). They take only ids from the scheduled list.
  • Edit can change the text, the time (--at-time) or both. An edit to the same text and time counts as done. A cancel with no answer is an unknown outcome.
  • Pins @wirecat/cli-core 0.706.0 and @wirecat/cli-base 0.122.0. Regenerated the manifest, docs/commands.md and the Bot API types for them.
  • adapter.ts is at its 650-line lint limit. The new delegations and two neighbouring ones (permalink, scheduled) are one-line arrow fields, like the bots and chat-list ones already are.

Testing

  • pnpm test: 2322 passed, 6 skipped. New adapter tests cover cancel/edit/send by scheduled id, the same-text edit, and the unknown cancel outcome.
  • pnpm typecheck, pnpm lint (2 warnings, both already on main), pnpm ci:quick, pnpm docs:check, pnpm generate:check.

🤖 Generated with Claude Code

Telegram numbers scheduled messages apart from sent ones, so `messages edit`
on a scheduled id failed with MESSAGE_ID_INVALID and `messages delete` with
the same number could hit an old sent message. The adapter now implements
cli-core 0.706.0's scheduled actions: `messages scheduled cancel|edit|send`
take only ids from the scheduled list. An edit to the same text and time
counts as done; a cancel without an answer is an unknown outcome.

Pins @wirecat/cli-core 0.706.0 and @wirecat/cli-base 0.122.0, and
regenerates the manifest, command docs and Bot API types for them.
adapter.ts sits at its 650-line limit, so the new delegations and two
neighbours are one-line arrow fields, as the bots and chat-list ones are.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant