daily pastebin goal
0%
SHARE
TWEET

Untitled

a guest Mar 25th, 2019 61 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1.     $approve_id = 1;
  2.  
  3.     $msg = 'TEST#1';
  4.     $user = 'viamvadens';
  5.     $reply_markup = array('inline_keyboard'=>array(array(
  6.         array('text'=>'ОДОБРИТЬ', "callback_data"=>base64_encode(json_encode(array('type'=>2, 'approve_id'=>$approve_id, 'confirm'=>true)))),
  7.         array('text'=>'ОТКЛОНИТЬ', "callback_data"=>base64_encode(json_encode(array('type'=>2, 'approve_id'=>$approve_id, 'confirm'=>false)))),
  8.     )));
  9.  
  10.     $r = file_get_contents(sprintf("http://betscontrolcenter.cp/telegram/send_message.php?u=%s&m=%s&rm=%s", $user, urlencode($msg), base64_encode(json_encode($reply_markup))));
  11.     echo "$r\n\n";
  12.  
  13.     $r = json_decode($r, true);
  14.  
  15.     var_export($r);
  16.  
  17.     if($r['status'] == 'OK'){
  18.         $DB = DB_CONNECT('bet_scanner');
  19.         $DB->query("UPDATE event_approves SET msg_id='%s,%d' WHERE id=%d", $user, $r['msg_id'], $approve_id);
  20.     }
  21.  
  22.  
  23.  
  24.     exit;
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