MadelineProtoDocs/docs/PHPInternal/danog/MadelineProto/MTProto/PermAuthKey.md

1.9 KiB

title: danog\MadelineProto\MTProto\PermAuthKey: MTProto permanent auth key. description:

danog\MadelineProto\MTProto\PermAuthKey

Back to index

Author: Daniil Gentili daniil@daniil.it

MTProto permanent auth key.

Method list:

  • isAuthorized(): bool
  • authorized(bool $authorized): void
  • jsonSerialize(): array
  • setAuthKey(string $authKey): void
  • hasAuthKey(): bool
  • getAuthKey(): string
  • getID(): string
  • setServerSalt(string $salt): void
  • getServerSalt(): string
  • hasServerSalt(): bool

Methods:

isAuthorized(): bool

Check if we are logged in.


Generated by danog/phpdoc

authorized(bool $authorized): void

Set the authorized boolean.

Parameters:

  • $authorized: bool Whether we are authorized

Generated by danog/phpdoc

jsonSerialize(): array

JSON serialization function.


Generated by danog/phpdoc

setAuthKey(string $authKey): void

Set auth key.

Parameters:

  • $authKey: string Authorization key

Generated by danog/phpdoc

hasAuthKey(): bool

Check if auth key is present.


Generated by danog/phpdoc

getAuthKey(): string

Get auth key.


Generated by danog/phpdoc

getID(): string

Get auth key ID.


Generated by danog/phpdoc

setServerSalt(string $salt): void

Set server salt.

Parameters:

  • $salt: string Server salt

Generated by danog/phpdoc

getServerSalt(): string

Get server salt.


Generated by danog/phpdoc

hasServerSalt(): bool

Check if has server salt.


Generated by danog/phpdoc


Generated by danog/phpdoc