Yngvarr

Generation

generate functionMon, 17 Apr 2023

Reply Keyboard Markup telegram

$keyboard = [ ['One', 'Two', 'Three'], ['Four', 'Five', 'Six'], ['Seven', 'Eight', 'Nine'], ['๐Ÿ”™'], ]; $reply_markup = $this->telegram->replyKeyboardMarkup([ 'keyboard' => $keyboard, 'resize_keyboard' => true, 'one_time_keyboard' => true ]); $response = $this->telegram->sendMessage([ 'chat_id' => 'CHAT_ID', 'text' => 'Hello World', 'reply_markup' => $reply_markup ]);

Questions about programming?Chat with your personal AI assistant