account.UploadTheme
- class pyrogram.raw.functions.account.UploadTheme
Upload theme
- Details:
Layer:
223ID:
1C3DB333
- Parameters:
file (
InputFile) – Previously uploaded theme file with platform-specific colors for UI components, can be left unset when creating themes that only modify the wallpaper or accent colors.file_name (
str) – File namemime_type (
str) – MIME type, must be application/x-tgtheme-{format}, where format depends on the clientthumb (
InputFile, optional) – Thumbnail
- Returns:
TL Schema
account.uploadTheme#1c3db333
flags:#
file:InputFile
thumb:flags.0?InputFile
file_name:string
mime_type:string
= Document
Parameter Tree
UploadTheme
├── file →
InputFile│ ├──
InputFile│ │ ├── id →
long│ │ ├── parts →
int│ │ ├── name →
string│ │ └── md5_checksum →
string│ ├──
InputFileBig│ │ ├── id →
long│ │ ├── parts →
int│ │ └── name →
string│ └──
InputFileStoryDocument│ └── id →
InputDocument│ ├──
InputDocumentEmpty│ └──
InputDocument│ ├── id →
long│ ├── access_hash →
long│ └── file_reference →
bytes├── thumb →
InputFile (optional)│ ├──
InputFile│ │ ├── id →
long│ │ ├── parts →
int│ │ ├── name →
string│ │ └── md5_checksum →
string│ ├──
InputFileBig│ │ ├── id →
long│ │ ├── parts →
int│ │ └── name →
string│ └──
InputFileStoryDocument│ └── id →
InputDocument│ ├──
InputDocumentEmpty│ └──
InputDocument│ ├── id →
long│ ├── access_hash →
long│ └── file_reference →
bytes├── file_name →
string└── mime_type →
stringExample
await app.invoke(
UploadTheme(
file=InputFile(
id=0,
parts=0,
name="text",
md5_checksum="text"
),
thumb=InputFile(
id=0,
parts=0,
name="text",
md5_checksum="text"
),
file_name="text",
mime_type="text",
)
)