Add concise shopping chat commands #4

Merged
pawel merged 1 commit from furina/message-shorthands into main 2026-08-24 10:52:23 +00:00
Collaborator

Adds ordinary-message shorthands alongside the existing slash commands:

  • a bread adds bread
  • r 23 removes item 23
  • s shows the list

Parsing is strictly anchored and malformed or unrelated chat is ignored. Successful and failed legacy /add and /remove responses append a hint for the equivalent shorthand; shorthand responses do not nag. /help and the README document the concise forms, while /clear remains explicit-only. The general message handler preserves bot-mention slash commands and no longer assumes every sender has a Telegram username.

Validation: cargo check --locked; 5 parser/hint unit tests passed. A branch workflow dispatch will validate the production image build without running the main-only deploy job.

Adds ordinary-message shorthands alongside the existing slash commands: - `a bread` adds `bread` - `r 23` removes item 23 - `s` shows the list Parsing is strictly anchored and malformed or unrelated chat is ignored. Successful and failed legacy `/add` and `/remove` responses append a hint for the equivalent shorthand; shorthand responses do not nag. `/help` and the README document the concise forms, while `/clear` remains explicit-only. The general message handler preserves bot-mention slash commands and no longer assumes every sender has a Telegram username. Validation: `cargo check --locked`; 5 parser/hint unit tests passed. A branch workflow dispatch will validate the production image build without running the main-only deploy job.
pawel merged commit 0deecd6fe5 into main 2026-08-24 10:52:23 +00:00
pawel deleted branch furina/message-shorthands 2026-08-24 10:52:30 +00:00
Sign in to join this conversation.
No reviewers
No labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
pawel/shopping-bot!4
No description provided.