lHappYzz / telegram-bot

2 stars 0 forks source link

Rework inlineKeyboardButtons callback data #19

Closed lHappYzz closed 2 years ago

lHappYzz commented 2 years ago

Maybe it is better to set up callback handler for each button ? Also now is impossible to know what button was pressed by user that uses inlineKeyboard. Maybe specifying callback data something like that [ 'handler' => 'paginatedMemes', 'button' => [ 'text' => $i ] ] would solve the problem. Maybe it is good idea to create new function for callbackQuery that will return pressed button