I'm trying create a inline_keyboard with number between 0 and 99. But the loop (a for structure) only shows from 0 to 7.
My code es:
$data = http_build_query([
'text' => 'Selecciona un numero:',
'chat_id' => $update['message']['from']['id']
]);
$keyboard = array();
for($i=0;$i<100;$i++) {
array_push($keyboard,array("text" => $i,"callback_data" => $i));
}
$resultado = json_encode(['inline_keyboard'=>array($keyboard)]);
// Send keyboard
file_get_contents($botAPI . "/sendMessage?".$data."&reply_markup=".$resultado);
And this is a screenshot from my smartphone:
Why does the loop only count to seven?