Skip to content

Refactor inline query handling by introducing a dedicated HandlerTypeInlineQuery #293

Description

@MatinHAB05

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:

  1. Add HandlerTypeInlineQuery: Define a new HandlerType constant specifically for inline queries.
  2. Update Routing Logic: Add a new case for HandlerTypeInlineQuery inside the internal match function to handle inline query routing properly.

Activity

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions