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.
Problem
A handler with type
HandlerTypeCallbackQueryData
will be matched byupdate.CallbackQuery.Data
. So, you MUST useRegisterHandlerMatchFunc
to add a handler for CallbackQuery withgame_short_name
(thedata
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 typeHandlerTypeCallbackQueryGameShortName
will be matched byupdate.CallbackQuery.GameShortName
.