Description
Currently, the sample implementation for handling inline queries provided in the examples/ directory feels messy. Treating inline queries without a explicit, dedicated handler type makes the code harder to maintain and less idiomatic.
Proposed Solution
To provide a cleaner API and a more logical developer experience, I propose introducing a dedicated HandlerType specifically for inline query interactions.
Key Changes:
- Add
HandlerTypeInlineQuery: Define a new HandlerType constant specifically for inline queries.
- Update Routing Logic: Add a new
case for HandlerTypeInlineQuery inside the internal match function to handle inline query routing properly.
Description
Currently, the sample implementation for handling inline queries provided in the
examples/directory feels messy. Treating inline queries without a explicit, dedicated handler type makes the code harder to maintain and less idiomatic.Proposed Solution
To provide a cleaner API and a more logical developer experience, I propose introducing a dedicated
HandlerTypespecifically for inline query interactions.Key Changes:
HandlerTypeInlineQuery: Define a newHandlerTypeconstant specifically for inline queries.caseforHandlerTypeInlineQueryinside the internalmatchfunction to handle inline query routing properly.