telegram api method · layer 229 · #652e4400
account.createTheme
Create a theme
definition
account.createTheme#652e4400 flags:# slug:string title:string document:flags.2?InputDocument settings:flags.3?Vector<InputThemeSettings> = Theme;
parameters
| 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 | InputDocument | Theme file |
settings | Vector<InputThemeSettings> | Theme settings, multiple values can be provided for the different base themes (day/night mode, etc). |
returns
errors (4)
| code | error | description |
|---|---|---|
| 400 | BUSINESS_CONNECTION_NOT_ALLOWED | This method was invoked over a business connection using invokeWithBusinessConnection, but either (1) we're a user, and users cannot invoke methods over a business connection; (2) we're a bot, but business mode was disabled in @botfather or (3); we're a bot, but this method cannot be invoked over a business connection. |
| 400 | THEME_MIME_INVALID | The theme's MIME type is invalid. |
| 400 | THEME_TITLE_INVALID | The specified theme title is invalid. |
| 401 | AUTH_KEY_UNREGISTERED | The specified authorization key is not registered in the system (for example, a PFS temporary key has expired). |
history
present in layers 105–229 · constructor id changed 2×
| id | layers |
|---|---|
| #2b7ffd7f | 105–106 |
| #8432c21f | 107–133 |
| #652e4400 | 134–229 |