Advertisement
Ol3gNoz

Untitled

Oct 10th, 2019
94
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.78 KB | None | 0 0
  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. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement