account.UploadTheme

class pyrogram.raw.functions.account.UploadTheme

Upload theme

Details:
  • Layer: 223

  • ID: 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 name

  • mime_type (str) – MIME type, must be application/x-tgtheme-{format}, where format depends on the client

  • thumb (InputFile, optional) – Thumbnail

Returns:

Document

TL Schema

account.uploadTheme#1c3db333
flags:#
file:InputFile
thumb:flags.0?InputFile
file_name:string
mime_type:string

= Document

Parameter Tree

UploadTheme
├── fileInputFile
│ ├── InputFile
│ │ ├── idlong
│ │ ├── partsint
│ │ ├── namestring
│ │ └── md5_checksumstring
│ ├── InputFileBig
│ │ ├── idlong
│ │ ├── partsint
│ │ └── namestring
│ └── idInputDocument
│ ├── InputDocumentEmpty
│ └── InputDocument
│ ├── idlong
│ ├── access_hashlong
│ └── file_referencebytes
├── thumbInputFile (optional)
│ ├── InputFile
│ │ ├── idlong
│ │ ├── partsint
│ │ ├── namestring
│ │ └── md5_checksumstring
│ ├── InputFileBig
│ │ ├── idlong
│ │ ├── partsint
│ │ └── namestring
│ └── idInputDocument
│ ├── InputDocumentEmpty
│ └── InputDocument
│ ├── idlong
│ ├── access_hashlong
│ └── file_referencebytes
├── file_namestring
└── mime_typestring

Example

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",
    )
)