public function main() { $dir = "/var/www/html/bot"; $file = \GroupBot\Brains\Speak::createAudioFile($this->getAllParams()); Telegram::sendVoice($this->Message->Chat->id, "{$dir}/speech/{$file}"); }