original_string: 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);
                  };
              }
          }
      }
code: 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);
                  };
              }
          }
      }
code_tokens: 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 ) ; } ; } } }
docstring: \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.
docstring_tokens: \ 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 .