Reply Keyboard Markup telegram
$keyboard = [['text'=>'Функция 1'],['text'=>'Функция 2']]; $reply_markup = $telegram->replyKeyboardMarkup(['keyboard' => $keyboard, 'resize_keyboard' => true, 'one_time_keyboard' => false, 'selective' => true] ); $response = $telegram->sendMessage([ 'chat_id' => '<CHAT_ID>', 'text' => 'Functions:', 'reply_markup' => $reply_markup ]); $messageId = $response->getMessageId();