$buttonConfirm->setActionType('reply');
$buttonConfirm->setActionBody('confirm');
$buttonConfirm->setText('Подтвердить');
$buttonCancel = new KeyboardButton();
$buttonCancel->setActionType('reply');
$buttonCancel->setActionBody('cancel');
$buttonCancel->setText('Отклонить');
$keyboard = new Keyboard();
$keyboard->setButtons([$buttonConfirm, $buttonCancel]);
К примеру есть 2 кнопки
Как обработать их нажатие и еще как пользоваться методом $bot->on ?