src/Params.php
private function validateAndSetBotParamsVital(array $params)
    {
        foreach (self::$valid_vital_bot_params as $vital_key) {
            if (!array_key_exists($vital_key, $params)) {
                throw new InvalidParamsException('Some vital info is missing: ' . $vital_key);
            }

            $this->bot_params[$vital_key] = $params[$vital_key];
        }
    }
private function validateAndSetBotParamsVital(array $params)
    {
        foreach (self::$valid_vital_bot_params as $vital_key) {
            if (!array_key_exists($vital_key, $params)) {
                throw new InvalidParamsException('Some vital info is missing: ' . $vital_key);
            }

            $this->bot_params[$vital_key] = $params[$vital_key];
        }
    }
private function validateAndSetBotParamsVital ( array $ params ) { foreach ( self :: $ valid_vital_bot_params as $ vital_key ) { if ( ! array_key_exists ( $ vital_key , $ params ) ) { throw new InvalidParamsException ( 'Some vital info is missing: ' . $ vital_key ) ; } $ this -> bot_params [ $ vital_key ] = $ params [ $ vital_key ] ; } }
Set all vital params.

@param array $params

@throws \TelegramBot\TelegramBotManager\Exception\InvalidParamsException
Set all vital params .