account.uploadTheme
Upload theme
| Name | Type | Required | Description |
|---|---|---|---|
file | InputFile | Yes | [Previously uploaded](https://core.telegram.org/api/themes.md#uploading-theme-files) theme file with platform-specific colors for UI components, can be left unset when creating themes that only modify the wallpaper or accent colors. |
thumb | InputFile | No | Thumbnail |
file_name | string | Yes | File name |
mime_type | string | Yes | MIME type, must be `application/x-tgtheme-{format}`, where `format` depends on the client |
Replies
Document
MTProto RPC
- 400 · THEME_FILE_INVALID — Invalid theme file provided.
- 400 · THEME_MIME_INVALID — The theme's MIME type is invalid.