SHARE
TWEET

Untitled

Ol3gNoz Oct 10th, 2019 73 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1.         if ($message == 'Получить запись') {
  2.  
  3.   $callid = $db->query("SELECT callid FROM users WHERE uid = ?i", $id)->fetch_assoc()["callid"];
  4.   if ($callid > 10) {
  5.           $phone = $db->query("SELECT phone FROM users WHERE uid = ?i", $id)->fetch_assoc()["phone"];
  6.           $pkey = $db->query("SELECT pkey FROM setting LIMIT 1")->fetch_assoc()["pkey"];
  7.                 $json = file_get_contents("https://calltools.ru/lk/cabapi_external/api/v1/phones/call_by_id/?public_key=$pkey&call_id=$callid");
  8.                 $decode = json_decode($json,1,2,3,4,5,6,7);
  9.                 $record = $decode["recorded_audio"];
  10.             $vk->sendMessage($peer_id, "Запись звонка:$json");
  11. } else {
  12.  
  13.            // $vk->sendMessage($peer_id, "errr");
  14.            
  15. }
  16. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top