src/BotManager.php
public function handleGetUpdates(): self
    {
        $get_updates_response = $this->telegram->handleGetUpdates();

        // Check if the user has set a custom callback for handling the response.
        if ($this->custom_get_updates_callback !== null) {
            $this->handleOutput(\call_user_func($this->custom_get_updates_callback, $get_updates_response));
        } else {
            $this->handleOutput($this->defaultGetUpdatesCallback($get_updates_response));
        }

        return $this;
    }
public function handleGetUpdates(): self
    {
        $get_updates_response = $this->telegram->handleGetUpdates();

        // Check if the user has set a custom callback for handling the response.
        if ($this->custom_get_updates_callback !== null) {
            $this->handleOutput(\call_user_func($this->custom_get_updates_callback, $get_updates_response));
        } else {
            $this->handleOutput($this->defaultGetUpdatesCallback($get_updates_response));
        }

        return $this;
    }
public function handleGetUpdates ( ) : self { $ get_updates_response = $ this -> telegram -> handleGetUpdates ( ) ; // Check if the user has set a custom callback for handling the response. if ( $ this -> custom_get_updates_callback !== null ) { $ this -> handleOutput ( \ call_user_func ( $ this -> custom_get_updates_callback , $ get_updates_response ) ) ; } else { $ this -> handleOutput ( $ this -> defaultGetUpdatesCallback ( $ get_updates_response ) ) ; } return $ this ; }
Handle the updates using the getUpdates method.

@return \TelegramBot\TelegramBotManager\BotManager
@throws \Longman\TelegramBot\Exception\TelegramException
Handle the updates using the getUpdates method .