account.InstallTheme

class pyrogram.raw.functions.account.InstallTheme

Install a theme

Details:
  • Layer: 227

  • 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
├── dark → true (optional)
├── theme → InputTheme (optional)
│ ├── InputTheme
│ │ ├── id → long
│ │ └── access_hash → long
│ └── InputThemeSlug
│ └── slug → string
├── format → string (optional)
└── base_theme → BaseTheme (optional)
├── BaseThemeDay
├── BaseThemeNight
├── BaseThemeTinted
└── BaseThemeArctic

Example

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