setAsyncRequest() public method

Make this request asynchronous (non-blocking).
public setAsyncRequest ( boolean $isAsyncRequest ) : Api
$isAsyncRequest boolean
return Api
 /**
  * TelegramController constructor.
  *
  * @param Api   $telegram
  * @param WebUi $webUi
  */
 public function __construct(Api $telegram, WebUi $webUi)
 {
     $this->telegram = $telegram->setAsyncRequest(false);
     $this->webUi = $webUi;
 }