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';
}
}
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.
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
Обсуждают сегодня