Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Optional callback handler for the reply keyboard #12

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

Provet
Copy link

@Provet Provet commented Oct 3, 2024

I’m adding an option to create a callback handler for the reply keyboard because, theoretically, the keyboard text might match regular messages in the future. Since there’s no way to use a generated prefix to handle text specifically from the keyboard, we risk processing all user messages in the chat that match the button handler. This solution will prevent that by consolidating all reply button handling into a single unified handler, without registering individual handlers during button creation.

@Provet
Copy link
Author

Provet commented Oct 3, 2024

cc @negasus

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.

1 participant