src/BotManager.php
protected function setBotExtrasRequest(): self
    {
        $request_extras = [
            // None at the moment...
        ];
        // For request extras, just pass the single param value to the Request method.
        foreach ($request_extras as $param_key => $method) {
            $param = $this->params->getBotParam($param_key);
            if (null !== $param) {
                Request::$method($param);
            }
        }

        // Special cases.
        $limiter_enabled = $this->params->getBotParam('limiter.enabled');
        if ($limiter_enabled !== null) {
            $limiter_options = $this->params->getBotParam('limiter.options', []);
            Request::setLimiter($limiter_enabled, $limiter_options);
        }

        return $this;
    }
protected function setBotExtrasRequest(): self
    {
        $request_extras = [
            // None at the moment...
        ];
        // For request extras, just pass the single param value to the Request method.
        foreach ($request_extras as $param_key => $method) {
            $param = $this->params->getBotParam($param_key);
            if (null !== $param) {
                Request::$method($param);
            }
        }

        // Special cases.
        $limiter_enabled = $this->params->getBotParam('limiter.enabled');
        if ($limiter_enabled !== null) {
            $limiter_options = $this->params->getBotParam('limiter.options', []);
            Request::setLimiter($limiter_enabled, $limiter_options);
        }

        return $this;
    }
protected function setBotExtrasRequest ( ) : self { $ request_extras = [ // None at the moment... ] ; // For request extras, just pass the single param value to the Request method. foreach ( $ request_extras as $ param_key => $ method ) { $ param = $ this -> params -> getBotParam ( $ param_key ) ; if ( null !== $ param ) { Request :: $ method ( $ param ) ; } } // Special cases. $ limiter_enabled = $ this -> params -> getBotParam ( 'limiter.enabled' ) ; if ( $ limiter_enabled !== null ) { $ limiter_options = $ this -> params -> getBotParam ( 'limiter.options' , [ ] ) ; Request :: setLimiter ( $ limiter_enabled , $ limiter_options ) ; } return $ this ; }
Set extra bot parameters for Request class.

@return \TelegramBot\TelegramBotManager\BotManager
@throws \Longman\TelegramBot\Exception\TelegramException
Set extra bot parameters for Request class .