2.3 KiB
2.3 KiB
title: danog\MadelineProto\MTProto\TempAuthKey: MTProto temporary auth key.
description:
danog\MadelineProto\MTProto\TempAuthKey
Author: Daniil Gentili daniil@daniil.it
MTProto temporary auth key.
Generated by danog/phpdoc.
Method list:
init(bool $init): void
isInited(): bool
bind(\danog\MadelineProto\MTProto\PermAuthKey|null $bound, bool $pfs): void
isBound(): bool
isAuthorized(): bool
authorized(bool $authorized): void
expires(int $expires): void
expired(): bool
jsonSerialize(): array
setAuthKey(string $authKey): void
hasAuthKey(): bool
getAuthKey(): string
getID(): string
setServerSalt(string $salt): void
getServerSalt(): string
hasServerSalt(): bool
Methods:
init(bool $init): void
Init or deinit connection for auth key.
Parameters:
$init
:bool
Init or deinit
isInited(): bool
Check if connection is inited for auth key.
bind(\danog\MadelineProto\MTProto\PermAuthKey|null $bound, bool $pfs): void
Bind auth key.
Parameters:
$bound
:\danog\MadelineProto\MTProto\PermAuthKey|null
Permanent auth key$pfs
:bool
Whether to bind using PFS
See also:
isBound(): bool
Check if auth key is bound.
isAuthorized(): bool
Check if we are logged in.
authorized(bool $authorized): void
Set the authorized boolean.
Parameters:
$authorized
:bool
Whether we are authorized
expires(int $expires): void
Set expiration date of temporary auth key.
Parameters:
$expires
:int
Expiration date
expired(): bool
Check if auth key has expired.
jsonSerialize(): array
JSON serialization function.
setAuthKey(string $authKey): void
Set auth key.
Parameters:
$authKey
:string
Authorization key
hasAuthKey(): bool
Check if auth key is present.
getAuthKey(): string
Get auth key.
getID(): string
Get auth key ID.
setServerSalt(string $salt): void
Set server salt.
Parameters:
$salt
:string
Server salt
getServerSalt(): string
Get server salt.
hasServerSalt(): bool
Check if has server salt.