code: function createEncryptedChannel(connection, app, authKey, serverSalt) {
      return new mt.net.EncryptedRpcChannel(
          connection, {
              authKey: authKey,
              serverSalt: serverSalt,
              sessionId: mt.utility.createNonce(8),
              sequenceNumber: new SequenceNumber()
          }, app
      );
  }
docs: Creates the encrypted channel used to call all the Telegram API methods _(private)_. The code: