mirror of
https://github.com/danog/MadelineProtoDocs.git
synced 2024-12-02 09:38:28 +01:00
1.6 KiB
1.6 KiB
title | description | nav_exclude | image |
---|---|---|---|
theme | Theme | true | https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png |
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];