MadelineProtoDocs/docs/API_docs/constructors/theme.md

47 lines
1.4 KiB
Markdown
Raw Normal View History

2019-09-13 17:13:55 +02:00
---
title: theme
description: Theme
image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png
---
# Constructor: theme
[Back to constructors index](index.md)
Theme
### Attributes:
| Name | Type | Required | Description |
|----------|---------------|----------|-------------|
2019-12-27 17:48:04 +01:00
|creator|[Bool](../types/Bool.md) | Optional|Whether the current user is the creator of this theme|
|default|[Bool](../types/Bool.md) | Optional|Whether this is the default theme|
|id|[long](../types/long.md) | Yes|Theme ID|
|access\_hash|[long](../types/long.md) | Yes|Theme access hash|
|slug|[string](../types/string.md) | Yes|Unique theme ID|
|title|[string](../types/string.md) | Yes|Theme name|
|document|[Document](../types/Document.md) | Optional|Theme|
2020-03-06 12:24:14 +01:00
|settings|[ThemeSettings](../types/ThemeSettings.md) | Optional||
2019-12-27 17:48:04 +01:00
|installs\_count|[int](../types/int.md) | Yes|Installation count|
2019-09-13 17:13:55 +02:00
### Type: [Theme](../types/Theme.md)
### Example:
```php
2020-03-06 12:24:14 +01:00
$theme = ['_' => 'theme', 'creator' => Bool, 'default' => Bool, 'id' => long, 'access_hash' => long, 'slug' => 'string', 'title' => 'string', 'document' => Document, 'settings' => ThemeSettings, 'installs_count' => int];
2019-09-13 17:13:55 +02:00
```
Or, if you're into Lua:
```lua
2020-03-06 12:24:14 +01:00
theme={_='theme', creator=Bool, default=Bool, id=long, access_hash=long, slug='string', title='string', document=Document, settings=ThemeSettings, installs_count=int}
2019-09-13 17:13:55 +02:00
```