$query = $matches[2];
$arr = explode('@', $query);
$query = $arr[0];
sayReply('Ищу, что такое: '.$query,2);
$queryUrl = urlencode($query);
$url = 'http://ru.wikipedia.org/w/api.php?action=opensearch&search='.$queryUrl.'&prop=info&format=xml&inprop=url';
$content = file_get_contents($url);
$xml = simplexml_load_string($content);
$answer = $xml->Section->Item->Description;
//избавимся от ударений
$answer = iconv("UTF-8","CP1251//IGNORE",$answer);
$answer = iconv("CP1251","UTF-8",$answer);
$answer = preg_replace("#\s\(.*?\)#isu", '', $answer);
$answer = strval($answer);
sayReply($answer,2);