code: public void switchMode(int mode) {
          if (this.mode != mode) {
              this.mode = mode;
  
              switch (mode) {
                  case MODE_GENERAL:
                  case MODE_PUSH:
                      transportPool.switchMode(TransportPool.MODE_DEFAULT);
                      break;
                  case MODE_GENERAL_LOW_MODE:
                  case MODE_FILE:
                      transportPool.switchMode(TransportPool.MODE_LOWMODE);
                      break;
  
              }
  
              this.actionsActor.sendOnce(new RequestPingDelay());
          }
      }
docs: Switch mode of mtproto
  
  @param mode new mode