Layer 227
AccountUploadTheme
Upload theme
method
Users
account.uploadTheme#1c3db333 flags:# file:InputFile thumb:flags.0?InputFile file_name:string mime_type:string = Document;
Parameters
| Name | Type | Description |
|---|---|---|
| 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. |
| Thumb | flags .0? InputFile | Thumbnail |
| FileName | string | File name |
| MimeType | string | MIME type, must be application/x-tgtheme-{format}, where format depends on the client |
Returns
DocumentGogram Example
// AccountUploadTheme - positional arguments result, err := client.AccountUploadTheme(&tg.InputFile{ID: int64(7654321098765), Parts: 3, Name: "upload.dat"}, nil, "Hello, World!", "Hello, World!") if err != nil { // handle error } // result is *tg.Document
Possible Errors
| Code | Type | Description |
|---|---|---|
| 400 | THEME_FILE_INVALID | Invalid theme file provided. |
| 400 | THEME_MIME_INVALID | The theme's MIME type is invalid. |