account.uploadTheme

Upload theme

 Method schema is available as of layer 105. Switch ยป

Parameters

Name Type Description
flags # Flags, see TL conditional fields
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
file_name string File name
mime_type string MIME type, must be application/x-tgtheme-{format}, where format depends on the client

Result

Document

Possible errors

Code Type Description
400 THEME_FILE_INVALID Invalid theme file provided.

Related pages

Themes

Telegram apps support generating, sharing and synchronizing app themes.