account.uploadTheme
Upload theme
| الاسم | النوع | مطلوب | الوصف |
|---|---|---|---|
file | InputFile | أيوه | [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 | لأ | Thumbnail |
file_name | string | أيوه | File name |
mime_type | string | أيوه | MIME type, must be `application/x-tgtheme-{format}`, where `format` depends on the client |
الردود
Document
MTProto RPC
- 400 · THEME_FILE_INVALID — Invalid theme file provided.
- 400 · THEME_MIME_INVALID — The theme's MIME type is invalid.