Constructor: theme
Theme
Attributes:
| Name | Type | Required | Description |
|---|---|---|---|
| creator | Bool | Optional | Whether the current user is the creator of this theme |
| default | Bool | Optional | Whether this is the default theme |
| for_chat | Bool | Optional | Whether this theme is meant to be used as a chat theme |
| id | long | Yes | Theme ID |
| access_hash | long | Yes | Theme access hash |
| slug | string | Yes | Unique theme ID |
| title | string | Yes | Theme name |
| document | Document | Optional | Theme |
| settings | Array of ThemeSettings | Optional | Theme settings |
| emoticon | string | Optional | Theme emoji |
| installs_count | int | Optional | Installation count |
Type: Theme
Example:
$theme = ['_' => 'theme', 'creator' => Bool, 'default' => Bool, 'for_chat' => Bool, 'id' => long, 'access_hash' => long, 'slug' => 'string', 'title' => 'string', 'document' => Document, 'settings' => [ThemeSettings, ThemeSettings], 'emoticon' => 'string', 'installs_count' => int];