/** * @return string */ public function getPath() { if ($this->path == null) { $this->path = Telegram::filePath(Telegram::api('getFile', ['file_id' => $this->file_id])['result']['file_path']); } return $this->path; }