--- title: danog\MadelineProto\Settings\TLSchema: TL schema settings. description: image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png --- # `danog\MadelineProto\Settings\TLSchema` [Back to index](../../../index.md) > Author: Daniil Gentili TL schema settings. ## Method list: * `needsUpgrade(): bool` * `upgrade(): void` * `getLayer(): int` * `setLayer(int $layer): self` * `getMTProtoSchema(): string` * `setMTProtoSchema(string $MTProtoSchema): self` * `getAPISchema(): string` * `setAPISchema(string $APISchema): self` * `getSecretSchema(): string` * `setSecretSchema(string $secretSchema): self` * `getOther(): array` * `setOther(array $other): self` * `hasChanged(): bool` ## Methods: ### `needsUpgrade(): bool` Returns whether the TL parser should re-parse the TL schemes. ### `upgrade(): void` Signal that scheme was re-parsed. ### `getLayer(): int` Get TL layer version. ### `setLayer(int $layer): self` Set TL layer version. Parameters: * `$layer`: `int` TL layer version. ### `getMTProtoSchema(): string` Get MTProto schema path. ### `setMTProtoSchema(string $MTProtoSchema): self` Set MTProto schema path. Parameters: * `$MTProtoSchema`: `string` MTProto schema path. ### `getAPISchema(): string` Get API schema path. ### `setAPISchema(string $APISchema): self` Set API schema path. Parameters: * `$APISchema`: `string` API schema path. ### `getSecretSchema(): string` Get secret schema path. ### `setSecretSchema(string $secretSchema): self` Set secret schema path. Parameters: * `$secretSchema`: `string` Secret schema path. ### `getOther(): array` Get the value of other. ### `setOther(array $other): self` Set the value of other. Parameters: * `$other`: `array` ### `hasChanged(): bool` Get whether this setting was changed, also applies changes. --- Generated by [danog/phpdoc](https://phpdoc.daniil.it)