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