account.UpdateTheme
- class pyrogram.raw.functions.account.UpdateTheme
Update theme
- Details:
Layer:
223ID:
2BF40CCC
- Parameters:
format (
str) – Theme format, a string that identifies the theming engines supported by the clienttheme (
InputTheme) – Theme to updateslug (
str, optional) – Unique theme IDtitle (
str, optional) – Theme namedocument (
InputDocument, optional) – Theme filesettings (List of
InputThemeSettings, optional) – Theme settings
- Returns:
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
├── format →
string├── theme →
InputTheme│ ├──
InputTheme│ │ ├── id →
long│ │ └── access_hash →
long│ └──
InputThemeSlug│ └── slug →
string├── slug →
string (optional)├── title →
string (optional)├── document →
InputDocument (optional)│ ├──
InputDocumentEmpty│ └──
InputDocument│ ├── id →
long│ ├── access_hash →
long│ └── file_reference →
bytes└── settings →
Vector < InputThemeSettings > (optional)├── message_colors_animated →
true (optional)├── base_theme →
BaseTheme│ ├──
BaseThemeClassic│ ├──
BaseThemeDay│ ├──
BaseThemeNight│ ├──
BaseThemeTinted│ └──
BaseThemeArctic├── accent_color →
int├── outbox_accent_color →
int (optional)├── message_colors →
Vector < int > (optional)├── wallpaper →
InputWallPaper (optional)│ ├──
InputWallPaper│ │ ├── id →
long│ │ └── access_hash →
long│ ├──
InputWallPaperSlug│ │ └── slug →
string│ └──
InputWallPaperNoFile│ └── id →
long└── wallpaper_settings →
WallPaperSettings (optional)├── blur →
true (optional)├── motion →
true (optional)├── background_color →
int (optional)├── second_background_color →
int (optional)├── third_background_color →
int (optional)├── fourth_background_color →
int (optional)├── intensity →
int (optional)├── rotation →
int (optional)└── emoticon →
string (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
)
],
)
)