account.InstallTheme
- class pyrogram.raw.functions.account.InstallTheme
Install a theme
- Details:
Layer:
223ID:
C727BB3B
- Parameters:
dark (
bool, optional) – Whether to install the dark versiontheme (
InputTheme, optional) – Theme to installformat (
str, optional) – Theme format, a string that identifies the theming engines supported by the clientbase_theme (
BaseTheme, optional) – Indicates a basic theme provided by all clients
- Returns:
bool
TL Schema
account.installTheme#c727bb3b
flags:#
dark:flags.0?true
theme:flags.1?InputTheme
format:flags.2?string
base_theme:flags.3?BaseTheme
= Bool
Parameter Tree
InstallTheme
├── dark →
true (optional)├── theme →
InputTheme (optional)│ ├──
InputTheme│ │ ├── id →
long│ │ └── access_hash →
long│ └──
InputThemeSlug│ └── slug →
string├── format →
string (optional)└── base_theme →
BaseTheme (optional)Example
await app.invoke(
InstallTheme(
dark=None,
theme=InputTheme(
id=0,
access_hash=0
),
format="text",
base_theme=BaseThemeClassic(),
)
)