id)) $this->id = (int) $_ENV['DEFAULT_' . strtoupper($name) . '_ID']; if (!isset($this->token)) $this->token = (string) $_ENV['DEFAULT_' . strtoupper($name) . '_TOKEN']; if (!isset($this->version)) $this->version = (float) $_ENV['DEFAULT_API_VERSION']; } public function postMethod($method, $params = []): BrowserAbstract { $browser = __NAMESPACE__ . '\\Browsers\\' . ucfirst($_ENV['BROWSER_TYPE']); return (new $browser)->post(); } public function longpoll(...$params): LongPoll { return new LongPoll($this, $params); } public function callback() { } protected function genToken(): string { return 'test'; } protected function genTokenMobile(string $captcha_key, int $captcha_id): string { return 'test 2'; } }