Link Search Menu Expand Document

Constructor: theme

Back to constructors index

Theme

Attributes:

NameTypeRequiredDescription
creatorBoolOptionalWhether the current user is the creator of this theme
defaultBoolOptionalWhether this is the default theme
for_chatBoolOptionalWhether this theme is meant to be used as a chat theme
idlongYesTheme ID
access_hashlongYesTheme access hash
slugstringYesUnique theme ID
titlestringYesTheme name
documentDocumentOptionalTheme
settingsArray of ThemeSettingsOptionalTheme settings
emoticonstringOptionalTheme emoji
installs_countintOptionalInstallation 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];