Yngvarr

Generation

generate functionMon, 17 Apr 2023

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();

Questions about programming?Chat with your personal AI assistant