コード例 #1
0
ファイル: client.php プロジェクト: MattPorto/Chat-API
     echo "\nEnter the URL or path of the video > ";
     $filepath = trim(fgets(STDIN));
     echo "\nSay something about the video > ";
     $caption = trim(fgets(STDIN));
     $target = $contact;
     $w->sendMessageVideo($target, $filepath, false, $fsize, $fhash, $caption);
     $w->pollMessage();
     break;
     ////////////////////////// test ///////////////////
 ////////////////////////// test ///////////////////
 case '/block':
     echo "< User is now blocked >\n";
     $w->sendMessagePaused($contact);
     $compose = true;
     $blocked = privacySettings($contact, 'block');
     $w->sendSetPrivacyBlockedList($blocked);
     break;
 case '/unblock':
     echo "< User is now unblocked >\n";
     $w->sendMessagePaused($contact);
     $compose = true;
     $blocked = privacySettings($contact, 'unblock');
     $w->sendSetPrivacyBlockedList($blocked);
     break;
 case '/back':
     echo "\nYou are now in the main menu\n";
     echo "================================\n\n";
     $chatting = false;
     break;
 case '/time':
     echo date("l jS \\of F Y h:i:s A") . "\n\n";