add usage: send_audio($peer, $file)

This commit is contained in:
Denny Dai
2015-06-26 14:05:00 +08:00
parent c3ada33e3b
commit d0391f4a7e
2 changed files with 6 additions and 1 deletions
+1 -1
View File
@@ -5,6 +5,6 @@ if (preg_match("/^".TAG."tts (.*)$/", $_GET['text'], $matches)) {
$file = fopen($_GET['from'].".mp3","w");
echo fwrite($file,$mp3);
fclose($file);
$BOT->exec("send_audio ".$from." /home/wwwroot/1.vps.dennx.com/".$_GET['from'].".mp3");
$BOT->send_audio($from, "/home/wwwroot/1.vps.dennx.com/".$_GET['from'].".mp3");
//unlink($matches[1].".mp3");
}