$Update= file_get_contents("php://input"); $update= json_decode($update,true); $message= $update['message']['text']; if(isset($message) == true){


if(strtolower($message) == "ok"){
$mess= "Hi";

$url= $GLOBALS[link_bot]."sendMessage?chat_id=".$chat_id."&parse_mode=HTML&text=".$mess;
file_get_contents($url);

include 'file.php';
}
}

4 ответов

13 просмотров

I would recommend a framework instead, but hey, you have that freedom of choice in PHP :)

There're a lot of people don't know how to install libraries in PHP. If I would suggest a library, I'll suggest SimpleBotAPI.

Lord unreal4u X
I would recommend a framework instead, but hey, yo...

Are you still updating your library? If not, which PHP library do you recommend?

Besides the one from unreal4u that's the other one I knew on Github. Till now I used my own simple framework, but I don't have the time anymore, so have to switch to unreal4u or the one from longman

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

Карта сайта