original_string: public function run(int $type = WEBHOOK)
      {
          if ($type == WEBHOOK) {
              $this->_is_webhook = true;
              $this->init();
              $this->processWebhookUpdate();
              return;
          }
  
          if ($type == DEBUG) {
              $this->debug = true;
          }
  
          $this->init();
          $this->getUpdatesLocal();
      }
code: public function run(int $type = WEBHOOK)
      {
          if ($type == WEBHOOK) {
              $this->_is_webhook = true;
              $this->init();
              $this->processWebhookUpdate();
              return;
          }
  
          if ($type == DEBUG) {
              $this->debug = true;
          }
  
          $this->init();
          $this->getUpdatesLocal();
      }
code_tokens: public function run ( int $ type = WEBHOOK ) { if ( $ type == WEBHOOK ) { $ this -> _is_webhook = true ; $ this -> init ( ) ; $ this -> processWebhookUpdate ( ) ; return ; } if ( $ type == DEBUG ) { $ this -> debug = true ; } $ this -> init ( ) ; $ this -> getUpdatesLocal ( ) ; }
docstring: \brief Start the bot.
  @param int $type How should the bot run?
docstring_tokens: \ brief Start the bot .