MadelineProtoDocs/docs/PHP/danog/MadelineProto/Settings/AppInfo.md

162 lines
2.1 KiB
Markdown

---
title: danog\MadelineProto\Settings\AppInfo: App information.
description:
---
# `danog\MadelineProto\Settings\AppInfo`
[Back to index](../../../index.md)
> Author: Daniil Gentili <daniil@daniil.it>
App information.
## Method list:
* `hasApiInfo(): bool`
* `getApiId(): int`
* `setApiId(int $apiId): self`
* `getApiHash(): string`
* `setApiHash(string $apiHash): self`
* `getDeviceModel(): string`
* `setDeviceModel(string $deviceModel): self`
* `getSystemVersion(): string`
* `setSystemVersion(string $systemVersion): self`
* `getAppVersion(): string`
* `setAppVersion(string $appVersion): self`
* `getLangCode(): string`
* `setLangCode(string $langCode): self`
* `getLangPack(): string`
* `setLangPack(string $langPack): self`
* `hasChanged(): bool`
## Methods:
### `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`: `int` API ID.
### `getApiHash(): string`
Get API hash.
### `setApiHash(string $apiHash): self`
Set API hash.
Parameters:
* `$apiHash`: `string` API hash.
### `getDeviceModel(): string`
Get device model.
### `setDeviceModel(string $deviceModel): self`
Set device model.
Parameters:
* `$deviceModel`: `string` Device model.
### `getSystemVersion(): string`
Get system version.
### `setSystemVersion(string $systemVersion): self`
Set system version.
Parameters:
* `$systemVersion`: `string` System version.
### `getAppVersion(): string`
Get app version.
### `setAppVersion(string $appVersion): self`
Set app version.
Parameters:
* `$appVersion`: `string` App version.
### `getLangCode(): string`
Get language code.
### `setLangCode(string $langCode): self`
Set language code.
Parameters:
* `$langCode`: `string` Language code.
### `getLangPack(): string`
Get language pack.
### `setLangPack(string $langPack): self`
Set language pack.
Parameters:
* `$langPack`: `string` Language pack.
### `hasChanged(): bool`
Get whether this setting was changed, also applies changes.
---
Generated by [danog/phpdoc](https://phpdoc.daniil.it)