Skip to content

feat: add inline query help button #14#18

Merged
edloidas merged 1 commit intomasterfrom
issue-14
Mar 28, 2026
Merged

feat: add inline query help button #14#18
edloidas merged 1 commit intomasterfrom
issue-14

Conversation

@edloidas
Copy link
Copy Markdown
Owner

Show a "How to use" button above inline results when the query fails to parse into any dice notation. The button deep-links to /start to display help text. Does not appear for empty queries (defaults are shown) or valid notation.

createInlineArticles() now returns InlineQueryResponse with a hasInvalidQuery flag instead of a plain array.

Closes #14

Drafted with AI assistance

Added "How to use" inline help button that deep-links to `/start` when query fails to parse.
Changed `createInlineArticles()` to return `InlineQueryResponse` with `hasInvalidQuery` flag instead of a plain array.
Added 6 tests verifying button presence for invalid queries and absence for valid/empty queries.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@edloidas edloidas self-assigned this Mar 28, 2026
@edloidas edloidas merged commit ffdf21a into master Mar 28, 2026
1 check passed
@edloidas edloidas deleted the issue-14 branch March 28, 2026 11:59
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.

feat: add inline query help button

1 participant