Hello friends ; i have an issue ; in this code

it sends text and inline_keyb s many times not in one place


for($a=0; $a<=17 ; $a++){
bot('sendMessage', [
'chat_id' => $chat_id,
'message_id'=>$message_id,
'text' =>"choose one bellow",
'parse_mode' => 'HTML',

'reply_markup' => json_encode([
'inline_keyboard' => [

[
['text'=>$js_link['Results'][$a]['Container']."_".$js_link['Results'][$a]['quality'], 'url'=> $js_link['Results'][$a]['link']],
['text' => "📡 view live", 'web_app' => ['url' =>$js_link['Results'][$a]['link']]]
],

]
])
]);
}


please help me how i fix it?
i wana keyboards be in one column not to be sent 17 times

5 ответов

35 просмотров

> for($a=0; $a<=17 ; $a++){ it's exactly many times or what do you mean?

✎ ◡̈⃝ sajjad-jabbarzadeh Автор вопроса
Sergey Koksharov
> for($a=0; $a<=17 ; $a++){ it's exactly many time...

i wana expand them and make 1=>17 inlines in one text

✎ ◡̈⃝ sajjad-jabbarzadeh Автор вопроса

Похожие вопросы

Карта сайта