Hi $Text_inline = $update->inline_query->query; $cut = str_replace('go ','',$text_inline); if (!empty($text_inline)) { if (strpos('go', $text_inline)

!== false){
//code
}
I just have small problems
I want to show the inline when writing a specific word, and cut this command, and add the next word
Like @userbot go https://www.google.com
I want to cut go word and use the link how i do this?

2 ответов

14 просмотров

Are you looking for smth like this? $arr = explode(" ", $text_inline); $command = arr[0]; if($command=="go") { $link = arr[1]; //your code }

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

Карта сайта