MadelineProtoDocs/docs/API_docs/constructors/theme.md
2020-06-16 17:50:25 +02:00

1.4 KiB

title description image
theme Theme https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png

Constructor: theme

Back to constructors index

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
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 ThemeSettings Optional Theme settings
installs_count int Yes Installation count

Type: Theme

Example:

$theme = ['_' => 'theme', 'creator' => Bool, 'default' => Bool, 'id' => long, 'access_hash' => long, 'slug' => 'string', 'title' => 'string', 'document' => Document, 'settings' => ThemeSettings, 'installs_count' => int];

Or, if you're into Lua:

theme={_='theme', creator=Bool, default=Bool, id=long, access_hash=long, slug='string', title='string', document=Document, settings=ThemeSettings, installs_count=int}