Create a theme
themeDocumentNotModified#483d270c = Theme;
theme#f7d90ce0 flags:# creator:flags.0?true default:flags.1?true id:long access_hash:long slug:string title:string document:flags.2?Document installs_count:int = Theme;
---functions---
account.createTheme#2b7ffd7f slug:string title:string document:InputDocument = Theme;
Name | Type | Description |
---|---|---|
flags | # | Flags, see TL conditional fields |
slug | string | Unique theme ID used to generate theme deep links, can be empty to autogenerate a random ID. |
title | string | Theme name |
document | flags.2?InputDocument | Theme file |
settings | flags.3?Vector<InputThemeSettings> | Theme settings, multiple values can be provided for the different base themes (day/night mode, etc). |
Code | Type | Description |
---|---|---|
400 | THEME_MIME_INVALID | The theme's MIME type is invalid. |
400 | THEME_TITLE_INVALID | The specified theme title is invalid. |
Telegram clients must handle special tg:// and t.me deep links encountered in messages, link entities and in other apps by registering OS handlers.