MadelineProtoDocs/old_docs/API_docs_v105/constructors/theme.md
2019-12-27 17:48:04 +01:00

1.3 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
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, '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, installs_count=int}