1.2 KiB
1.2 KiB
title: danog\MadelineProto\MTProto\AuthKey: MTProto auth key.
description:
danog\MadelineProto\MTProto\AuthKey
Author: Daniil Gentili daniil@daniil.it
MTProto auth key.
Generated by danog/phpdoc.
Method list:
setAuthKey(string $authKey): void
hasAuthKey(): bool
getAuthKey(): string
getID(): string
setServerSalt(string $salt): void
getServerSalt(): string
hasServerSalt(): bool
isAuthorized(): bool
authorized(bool $authorized): void
Methods:
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.
isAuthorized(): bool
Check if we are logged in.
authorized(bool $authorized): void
Set the authorized boolean.
Parameters:
$authorized
:bool
Whether we are authorized