account.InstallTheme

class pyrogram.raw.functions.account.InstallTheme

Install a theme

Details:
  • Layer: 223

  • ID: C727BB3B

Parameters:
  • dark (bool, optional) – Whether to install the dark version

  • theme (InputTheme, optional) – Theme to install

  • format (str, optional) – Theme format, a string that identifies the theming engines supported by the client

  • base_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
├── darktrue (optional)
├── themeInputTheme (optional)
│ ├── InputTheme
│ │ ├── idlong
│ │ └── access_hashlong
│ └── InputThemeSlug
│ └── slugstring
├── formatstring (optional)
└── base_themeBaseTheme (optional)
├── BaseThemeDay
├── BaseThemeNight
├── BaseThemeTinted
└── BaseThemeArctic

Example

await app.invoke(
    InstallTheme(
        dark=None,
        theme=InputTheme(
            id=0,
            access_hash=0
        ),
        format="text",
        base_theme=BaseThemeClassic(),
    )
)