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
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