telegram api method · layer 229 · #2bf40ccc
account.updateTheme
Update theme
definition
account.updateTheme#2bf40ccc flags:# format:string theme:InputTheme slug:flags.0?string title:flags.1?string document:flags.2?InputDocument settings:flags.3?Vector<InputThemeSettings> = Theme;
parameters
| name | type | description |
|---|---|---|
flags | # | Flags, see TL conditional fields |
format | string | Theme format, a string that identifies the theming engines supported by the client |
theme | InputTheme | Theme to update |
slug | string | Unique theme ID |
title | string | Theme name |
document | InputDocument | Theme file |
settings | Vector<InputThemeSettings> | Theme settings |
returns
errors (3)
| 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_INVALID | Invalid theme provided. |
| 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 |
|---|---|
| #3b8ea202 | 105–106 |
| #5cb367d5 | 107–133 |
| #2bf40ccc | 134–229 |