public function oldDispatch()
    {
        // For each update type
        foreach (BasicBot::$update_types as $offset => $class) {
            // Check if the bot has an inherited method
            if (method_exists($this, 'process' . $class)) {
                // Wrap it in a closure to make it works with the 3.0 version
                $this->answerUpdate[$offset] = function ($bot, $entity) use ($class) {
                    $bot->{"process$class"}($entity);
                };
            }
        }
    }
public function oldDispatch()
    {
        // For each update type
        foreach (BasicBot::$update_types as $offset => $class) {
            // Check if the bot has an inherited method
            if (method_exists($this, 'process' . $class)) {
                // Wrap it in a closure to make it works with the 3.0 version
                $this->answerUpdate[$offset] = function ($bot, $entity) use ($class) {
                    $bot->{"process$class"}($entity);
                };
            }
        }
    }
public function oldDispatch ( ) { // For each update type foreach ( BasicBot :: $ update_types as $ offset => $ class ) { // Check if the bot has an inherited method if ( method_exists ( $ this , 'process' . $ class ) ) { // Wrap it in a closure to make it works with the 3.0 version $ this -> answerUpdate [ $ offset ] = function ( $ bot , $ entity ) use ( $ class ) { $ bot -> { "process$class" } ( $ entity ) ; } ; } } }
\brief Set compatibilityu mode for old processes method.
\details If your bot uses `processMessage` or another deprecated function, call this method to make the old version works.
\ brief Set compatibilityu mode for old processes method . \ details If your bot uses processMessage or another deprecated function call this method to make the old version works .