src/BotManager.php
public function handleRequest(): self
    {
        if ($this->params->getBotParam('webhook.url')) {
            return $this->handleWebhook();
        }

        if ($loop_time = $this->getLoopTime()) {
            return $this->handleGetUpdatesLoop($loop_time, $this->getLoopInterval());
        }

        return $this->handleGetUpdates();
    }
public function handleRequest(): self
    {
        if ($this->params->getBotParam('webhook.url')) {
            return $this->handleWebhook();
        }

        if ($loop_time = $this->getLoopTime()) {
            return $this->handleGetUpdatesLoop($loop_time, $this->getLoopInterval());
        }

        return $this->handleGetUpdates();
    }
public function handleRequest ( ) : self { if ( $ this -> params -> getBotParam ( 'webhook.url' ) ) { return $ this -> handleWebhook ( ) ; } if ( $ loop_time = $ this -> getLoopTime ( ) ) { return $ this -> handleGetUpdatesLoop ( $ loop_time , $ this -> getLoopInterval ( ) ) ; } return $ this -> handleGetUpdates ( ) ; }
Handle the request, which calls either the Webhook or getUpdates method respectively.

@return \TelegramBot\TelegramBotManager\BotManager
@throws \Longman\TelegramBot\Exception\TelegramException
Handle the request which calls either the Webhook or getUpdates method respectively .