Make even more methods internal
This commit is contained in:
parent
75602e5de0
commit
cb2367ab1b
@ -4142,17 +4142,6 @@ class InternalDoc extends APIFactory
|
||||
{
|
||||
$this->__call(__FUNCTION__, [$extra]);
|
||||
}
|
||||
/**
|
||||
* Check if connected to datacenter using HTTP.
|
||||
*
|
||||
* @param string $datacenter DC ID
|
||||
*
|
||||
* @return boolean
|
||||
*/
|
||||
public function isHttp(string $datacenter, array $extra = []): bool
|
||||
{
|
||||
return $this->__call(__FUNCTION__, [$datacenter, $extra]);
|
||||
}
|
||||
/**
|
||||
* Checks whether all datacenters are authorized.
|
||||
*
|
||||
@ -4225,18 +4214,6 @@ class InternalDoc extends APIFactory
|
||||
{
|
||||
return $this->__call(__FUNCTION__, [$extra]);
|
||||
}
|
||||
/**
|
||||
* Create authorization key.
|
||||
*
|
||||
* @param int $expires_in Expiry date of auth key, -1 for permanent auth key
|
||||
* @param string $datacenter DC ID
|
||||
*
|
||||
* @return \Generator<AuthKey>
|
||||
*/
|
||||
public function createAuthKey(int $expires_in, string $datacenter, array $extra = [])
|
||||
{
|
||||
return $this->__call(__FUNCTION__, [$expires_in, $datacenter, $extra]);
|
||||
}
|
||||
/**
|
||||
* Check validity of g_a parameters.
|
||||
*
|
||||
@ -4249,71 +4226,6 @@ class InternalDoc extends APIFactory
|
||||
{
|
||||
return $this->__call(__FUNCTION__, [$g_a, $p, $extra]);
|
||||
}
|
||||
/**
|
||||
* Check validity of p and g parameters.
|
||||
*
|
||||
* @param BigInteger $p
|
||||
* @param BigInteger $g
|
||||
*
|
||||
* @return boolean
|
||||
*/
|
||||
public function checkPG(\tgseclib\Math\BigInteger $p, \tgseclib\Math\BigInteger $g, array $extra = []): bool
|
||||
{
|
||||
return $this->__call(__FUNCTION__, [$p, $g, $extra]);
|
||||
}
|
||||
/**
|
||||
* Get diffie-hellman configuration.
|
||||
*
|
||||
* @return \Generator<array>
|
||||
*/
|
||||
public function getDhConfig(array $extra = [])
|
||||
{
|
||||
return $this->__call(__FUNCTION__, [$extra]);
|
||||
}
|
||||
/**
|
||||
* Bind temporary and permanent auth keys.
|
||||
*
|
||||
* @param integer $expires_in Date of expiry for binding
|
||||
* @param string $datacenter DC ID
|
||||
*
|
||||
* @return \Generator<bool>
|
||||
*/
|
||||
public function bindTempAuthKey(int $expires_in, string $datacenter, array $extra = [])
|
||||
{
|
||||
return $this->__call(__FUNCTION__, [$expires_in, $datacenter, $extra]);
|
||||
}
|
||||
/**
|
||||
* Asynchronously create, bind and check auth keys for all DCs.
|
||||
*
|
||||
* @return \Generator
|
||||
*/
|
||||
public function initAuthorization(array $extra = [])
|
||||
{
|
||||
return $this->__call(__FUNCTION__, [$extra]);
|
||||
}
|
||||
/**
|
||||
* Init auth keys for single DC.
|
||||
*
|
||||
* @param string $id DC ID
|
||||
* @param DataCenterConnection $socket DC object
|
||||
*
|
||||
* @return \Generator
|
||||
*/
|
||||
public function initAuthorizationSocket(string $id, \danog\MadelineProto\DataCenterConnection $socket, array $extra = [])
|
||||
{
|
||||
return $this->__call(__FUNCTION__, [$id, $socket, $extra]);
|
||||
}
|
||||
/**
|
||||
* Sync authorization data between DCs.
|
||||
*
|
||||
* @param string $id DC ID
|
||||
*
|
||||
* @return \Generator
|
||||
*/
|
||||
public function syncAuthorization(string $id, array $extra = [])
|
||||
{
|
||||
return $this->__call(__FUNCTION__, [$id, $extra]);
|
||||
}
|
||||
/**
|
||||
* Call method and wait asynchronously for response.
|
||||
*
|
||||
@ -4945,17 +4857,6 @@ class InternalDoc extends APIFactory
|
||||
{
|
||||
return $this->__call(__FUNCTION__, [$params, $extra]);
|
||||
}
|
||||
/**
|
||||
* Sanify TL obtained from JSON for TL serialization.
|
||||
*
|
||||
* @param array $input Data to sanitize
|
||||
|
||||
* @return array
|
||||
*/
|
||||
public function convertJsonTL(array $input): array
|
||||
{
|
||||
return \danog\MadelineProto\MTProto::convertJsonTL($input);
|
||||
}
|
||||
/**
|
||||
* Generate MTProto vector hash.
|
||||
*
|
||||
|
@ -1414,6 +1414,8 @@ class MTProto extends AsyncConstruct implements TLCallback
|
||||
*
|
||||
* @param string $datacenter DC ID
|
||||
*
|
||||
* @internal
|
||||
*
|
||||
* @return boolean
|
||||
*/
|
||||
public function isHttp(string $datacenter): bool
|
||||
|
@ -53,6 +53,8 @@ trait AuthKeyHandler
|
||||
* @param int $expires_in Expiry date of auth key, -1 for permanent auth key
|
||||
* @param string $datacenter DC ID
|
||||
*
|
||||
* @internal
|
||||
*
|
||||
* @return \Generator<AuthKey>
|
||||
*/
|
||||
public function createAuthKey(int $expires_in, string $datacenter): \Generator
|
||||
@ -465,6 +467,8 @@ trait AuthKeyHandler
|
||||
* @param BigInteger $p
|
||||
* @param BigInteger $g
|
||||
*
|
||||
* @internal
|
||||
*
|
||||
* @return boolean
|
||||
*/
|
||||
public function checkPG(BigInteger $p, BigInteger $g): bool
|
||||
@ -516,6 +520,8 @@ trait AuthKeyHandler
|
||||
/**
|
||||
* Get diffie-hellman configuration.
|
||||
*
|
||||
* @internal
|
||||
*
|
||||
* @return \Generator<array>
|
||||
*/
|
||||
public function getDhConfig(): \Generator
|
||||
@ -539,6 +545,8 @@ trait AuthKeyHandler
|
||||
* @param integer $expires_in Date of expiry for binding
|
||||
* @param string $datacenter DC ID
|
||||
*
|
||||
* @internal
|
||||
*
|
||||
* @return \Generator<bool>
|
||||
*/
|
||||
public function bindTempAuthKey(int $expires_in, string $datacenter): \Generator
|
||||
@ -636,6 +644,8 @@ trait AuthKeyHandler
|
||||
/**
|
||||
* Asynchronously create, bind and check auth keys for all DCs.
|
||||
*
|
||||
* @internal
|
||||
*
|
||||
* @return \Generator
|
||||
*/
|
||||
public function initAuthorization(): \Generator
|
||||
@ -698,6 +708,8 @@ trait AuthKeyHandler
|
||||
* @param string $id DC ID
|
||||
* @param DataCenterConnection $socket DC object
|
||||
*
|
||||
* @internal
|
||||
*
|
||||
* @return \Generator
|
||||
*/
|
||||
public function initAuthorizationSocket(string $id, DataCenterConnection $socket): \Generator
|
||||
@ -766,6 +778,8 @@ trait AuthKeyHandler
|
||||
*
|
||||
* @param string $id DC ID
|
||||
*
|
||||
* @internal
|
||||
*
|
||||
* @return \Generator
|
||||
*/
|
||||
public function syncAuthorization(string $id): \Generator
|
||||
|
@ -48,8 +48,8 @@ trait Tools
|
||||
*
|
||||
* @param array $input Data to sanitize
|
||||
*
|
||||
* @internal
|
||||
*
|
||||
* @internal
|
||||
*
|
||||
* @return array
|
||||
*/
|
||||
public static function convertJsonTL(array $input): array
|
||||
|
Loading…
Reference in New Issue
Block a user