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

[Feature] add 'HandlerTypeCallbackQueryGameShortName' #108

Conversation

oanhnn
Copy link
Contributor

@oanhnn oanhnn commented Aug 19, 2024

Problem

A handler with type HandlerTypeCallbackQueryData will be matched by update.CallbackQuery.Data.
So, you MUST use RegisterHandlerMatchFunc to add a handler for CallbackQuery with game_short_name (the data field may be empty. See more https://core.telegram.org/bots/api#callbackquery).

This feature will help you add a handler for CallbackQuery with game_short_name more easily.

Solution

Add const HandlerTypeCallbackQueryGameShortName.
A handler with type HandlerTypeCallbackQueryGameShortName will be matched by update.CallbackQuery.GameShortName.

@negasus negasus merged commit 6f8231d into go-telegram:main Sep 16, 2024
1 check passed
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.

2 participants