Longman\TelegramBot\Commands\SystemCommand::execute PHP Method

execute() public method

Although system commands should just work and return a successful ServerResponse, each system command can override this method to add custom functionality.
public execute ( ) : ServerResponse
return Longman\TelegramBot\Entities\ServerResponse
    public function execute()
    {
        //System command, return empty ServerResponse by default
        return Request::emptyResponse();
    }

Usage Example

 /**
  * Command execute method
  *
  * @return mixed
  * @throws \Longman\TelegramBot\Exception\TelegramException
  */
 public function execute()
 {
     //Information about chosen result is returned
     //$update = $this->getUpdate();
     //$inline_query = $update->getChosenInlineResult();
     //$query = $inline_query->getQuery();
     return parent::execute();
 }
All Usage Examples Of Longman\TelegramBot\Commands\SystemCommand::execute
SystemCommand