account.UpdateTheme

class pyrogram.raw.functions.account.UpdateTheme

Update theme

Details:
  • Layer: 223

  • ID: 2BF40CCC

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

  • theme (InputTheme) – Theme to update

  • slug (str, optional) – Unique theme ID

  • title (str, optional) – Theme name

  • document (InputDocument, optional) – Theme file

  • settings (List of InputThemeSettings, optional) – Theme settings

Returns:

Theme

TL Schema

account.updateTheme#2bf40ccc
flags:#
format:string
theme:InputTheme
slug:flags.0?string
title:flags.1?string
document:flags.2?InputDocument
settings:flags.3?Vector<InputThemeSettings>

= Theme

Parameter Tree

UpdateTheme
├── formatstring
├── themeInputTheme
│ ├── InputTheme
│ │ ├── idlong
│ │ └── access_hashlong
│ └── InputThemeSlug
│ └── slugstring
├── slugstring (optional)
├── titlestring (optional)
├── documentInputDocument (optional)
│ ├── InputDocumentEmpty
│ └── InputDocument
│ ├── idlong
│ ├── access_hashlong
│ └── file_referencebytes
└── settingsVector < InputThemeSettings > (optional)
├── message_colors_animatedtrue (optional)
├── base_themeBaseTheme
│ ├── BaseThemeClassic
│ ├── BaseThemeDay
│ ├── BaseThemeNight
│ ├── BaseThemeTinted
│ └── BaseThemeArctic
├── accent_colorint
├── outbox_accent_colorint (optional)
├── message_colorsVector < int > (optional)
├── wallpaperInputWallPaper (optional)
│ ├── InputWallPaper
│ │ ├── idlong
│ │ └── access_hashlong
│ ├── InputWallPaperSlug
│ │ └── slugstring
│ └── InputWallPaperNoFile
│ └── idlong
└── wallpaper_settingsWallPaperSettings (optional)
├── blurtrue (optional)
├── motiontrue (optional)
├── background_colorint (optional)
├── second_background_colorint (optional)
├── third_background_colorint (optional)
├── fourth_background_colorint (optional)
├── intensityint (optional)
├── rotationint (optional)
└── emoticonstring (optional)

Example

await app.invoke(
    UpdateTheme(
        format="text",
        theme=InputTheme(
            id=0,
            access_hash=0
        ),
        slug="text",
        title="text",
        document=InputDocumentEmpty(),
        settings=[
                InputThemeSettings(
                    message_colors_animated=None,
                    base_theme=BaseThemeClassic(),
                    accent_color=0,
                    outbox_accent_color=None,
                    message_colors=None,
                    wallpaper=None,
                    wallpaper_settings=None
                )
            ],
    )
)