Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- if(strpos($attr["step"],"create") !== false)
- {
- exec("python a.py -a $text", $output);
- $message = $output[1];
- $keyboard[] = array(0 => "create");
- $resp = array("keyboard" => $keyboard,"resize_keyboard" => true, "one_time_keyboard" => true);
- $reply = json_encode($resp);
- $url = $website."/sendmessagesage?chat_id=".$chat_id."&text=".$message."&reply_markup=".$reply;
- file_get_contents($url);
- $message = "Thanks!";
- $url = $website."/sendmessagesage?chat_id=".$chat_id."&parse_mode=Markdown&text=".urlencode($message)."&reply_markup=".$reply;
- file_get_contents($url);
- return;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement