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();
    }
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();
    }
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 ( ) ; }
\brief Start the bot.
@param int $type How should the bot run?
\ brief Start the bot .