src/Params.php
private function validateAndSetBotParams(array $params): self
    {
        $this->validateAndSetBotParamsVital($params);
        $this->validateAndSetBotParamsSpecial($params);
        $this->validateAndSetBotParamsExtra($params);

        return $this;
    }
private function validateAndSetBotParams(array $params): self
    {
        $this->validateAndSetBotParamsVital($params);
        $this->validateAndSetBotParamsSpecial($params);
        $this->validateAndSetBotParamsExtra($params);

        return $this;
    }
private function validateAndSetBotParams ( array $ params ) : self { $ this -> validateAndSetBotParamsVital ( $ params ) ; $ this -> validateAndSetBotParamsSpecial ( $ params ) ; $ this -> validateAndSetBotParamsExtra ( $ params ) ; return $ this ; }
Validate and set up the vital and extra params.

@param array $params

@return \TelegramBot\TelegramBotManager\Params
@throws \TelegramBot\TelegramBotManager\Exception\InvalidParamsException
Validate and set up the vital and extra params .