Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- if ($message == 'Получить запись') {
- $callid = $db->query("SELECT callid FROM users WHERE uid = ?i", $id)->fetch_assoc()["callid"];
- if ($callid > 10) {
- $phone = $db->query("SELECT phone FROM users WHERE uid = ?i", $id)->fetch_assoc()["phone"];
- $pkey = $db->query("SELECT pkey FROM setting LIMIT 1")->fetch_assoc()["pkey"];
- $json = file_get_contents("https://calltools.ru/lk/cabapi_external/api/v1/phones/call_by_id/?public_key=$pkey&call_id=$callid");
- $decode = json_decode($json,1,2,3,4,5,6,7);
- $record = $decode["recorded_audio"];
- $vk->sendMessage($peer_id, "Запись звонка:$json");
- } else {
- // $vk->sendMessage($peer_id, "errr");
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement