danog\MadelineProto\Settings\AppInfo
Author: Daniil Gentili daniil@daniil.it
App information.
Method list:
__construct()init(): voidhasApiInfo(): boolgetApiId(): intsetApiId(int $apiId): selfgetApiHash(): stringsetApiHash(string $apiHash): selfgetDeviceModel(): stringsetDeviceModel(string $deviceModel): selfgetSystemVersion(): stringsetSystemVersion(string $systemVersion): selfgetAppVersion(): stringsetAppVersion(string $appVersion): selfgetLangCode(): stringsetLangCode(string $langCode): selfgetSystemLangCode(): stringsetSystemLangCode(string $langCode): selfgetLangPack(): stringsetLangPack(string $langPack): selfgetShowPrompt(): boolsetShowPrompt(bool $showPrompt): static
Methods:
__construct()
init(): void
hasApiInfo(): bool
Check if the settings have API ID/hash information.
getApiId(): int
Get API ID.
setApiId(int $apiId): self
Set API ID.
Parameters:
$apiId:intAPI ID.
getApiHash(): string
Get API hash.
setApiHash(string $apiHash): self
Set API hash.
Parameters:
$apiHash:stringAPI hash.
getDeviceModel(): string
Get device model.
setDeviceModel(string $deviceModel): self
Set device model.
Parameters:
$deviceModel:stringDevice model.
getSystemVersion(): string
Get system version.
setSystemVersion(string $systemVersion): self
Set system version.
Parameters:
$systemVersion:stringSystem version.
getAppVersion(): string
Get app version.
setAppVersion(string $appVersion): self
Set app version.
Parameters:
$appVersion:stringApp version.
getLangCode(): string
Get language code.
setLangCode(string $langCode): self
Set language code.
Parameters:
$langCode:stringLanguage code.
getSystemLangCode(): string
Get system language code.
setSystemLangCode(string $langCode): self
Set system language code.
Parameters:
$langCode:stringLanguage code.
getLangPack(): string
Get language pack.
setLangPack(string $langPack): self
Set language pack.
Parameters:
$langPack:stringLanguage pack.
getShowPrompt(): bool
Get whether to show a prompt, asking to enter an API ID/API hash if none is provided.
setShowPrompt(bool $showPrompt): static
Set whether to show a prompt, asking to enter an API ID/API hash if none is provided.
Parameters:
$showPrompt:boolWhether to show a prompt, asking to enter an API ID/API hash if none is provided.
Generated by danog/phpdoc