Tags: gramiojs/gramio
Tags
feat: add command metadata and syncCommands() for automatic Telegram … …menu sync Enhanced .command() accepts optional CommandMeta (description, locales, scopes, hide). Added bot.syncCommands() with smart hash-based caching, scope grouping, and exclude option.
refactor: replace optional chaining with non-null assertions in tests… … and remove ts-expect-error comments - Replace `capturedArgs?.[1]` with `capturedArgs![1]!` in hears, callbackQuery, inlineQuery, and chosenInlineResult tests - Remove `@ts-expect-error` comments from webhook adapter Response constructors - Add type cast to `trigger(context)` call in hears handler for proper type narrowing
refactor: add type-safe expectString helper and replace nullable asse… …rtions in test cases - Add expectString() helper to safely extract and validate string values from unknown types - Replace optional chaining (?.[]) with explicit null checks and type-safe extraction - Update hears, callbackQuery, inlineQuery, and chosenInlineResult tests to use expectString for captured match groups
PreviousNext