далее
$texed это массив текста ответов, можете поменять на свои
$attached это прикрепляемые файлы к сообщению, в коде музыка, можете вставить и фотку и видео, что угодно!
На файл нужно поставить крон и права 777!
ну впринципе всё, больше ничего настраивать и не надо!
                        
<?php 
$access_token = '2222222222'; //Нужно взять тут от айфона http://vk.cc/2nRMwk 
date_default_timezone_set ('Europe/Kiev'); // http://www.php.net/manual/ru/timezones.php 
$messagesGet = curl('https://api.vk.com/method/messages.get?count=200&filters=1&access_token='.$access_token); 
$jsonM = json_decode($messagesGet,1); 
$texed = array('xD','лузер','лашара иди нах','ололололо'); 
$chbade = mt_rand (0, count($texed)-1); 
$text = urlencode($texed[$chbade]); 
$attached = array('audio220353117_247717640','audio220353117_245692924','audio220353117_246800054','audio220353117_244954248','audio220353117_246555945' ,'audio220353117_245845374','audio220353117_245127790'); 
$chbad = mt_rand (0, count($attached)-1); 
$attach = urlencode($attached[$chbad]); 
if(!file_exists('log.txt')){ 
addlog(''); 
$blacklist = file_get_contents('./log.txt'); 
} 
else{ 
$blacklist = file_get_contents('./log.txt'); 
} 
$countMess = $jsonM['response']['0']; 
$uids = array('jmg'); 
for($i=1;$i<=$countMess;$i++){ 
$senderUid = $jsonM['response'][$i]['uid']; 
$uids[$i] = $senderUid; 
} 
$uids = array_values(array_unique($uids)); 
for($q=1;$q<=count($uids)-1;$q++){ 
echo $uids[$q].'<br>'; 
if (strpos($blacklist, (string)$uids[$q]) === false){ 
echo curl('https://api.vk.com/method/messages.send?uid='.$uids[$q].'&message='.$text.'&attachment='.$attach.'&access_token='.$access_token); 
addlog($uids[$q]); 
} 
} 
function addlog($logtext){ 
$fp = fopen( './log.txt', 'a' ); 
fwrite( $fp, '['.date( 'd.m.Y H:i:s', time() ).'] '.$logtext.PHP_EOL ); 
} 
function curl($url){ 
$ch = curl_init( $url ); 
curl_setopt( $ch, CURLOPT_RETURNTRANSFER, true ); 
curl_setopt( $ch, CURLOPT_SSL_VERIFYHOST, false ); 
curl_setopt( $ch, CURLOPT_SSL_VERIFYPEER, false ); 
$response = curl_exec( $ch ); 
curl_close( $ch ); 
return $response; 
} 
?> 
  
                                 [мошенник]
 [мошенник]  Автоответчик VK
 Автоответчик VK