public function sendIfExists($file_path) { $photoSQL = new Photo($this->db); $file_id = $photoSQL->getRadarPhotoId($file_path); if (!$file_id) { return false; } \GroupBot\Telegram::fileIdDocumentSender($this->chat_id, $file_id); return true; }