telegram api method · layer 229 · #2bf40ccc

account.updateTheme

usable by users

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

nametypedescription
flags#Flags, see TL conditional fields
formatstringTheme format, a string that identifies the theming engines supported by the client
themeInputThemeTheme to update
slugflags.0?stringUnique theme ID
titleflags.1?stringTheme name
documentflags.2?InputDocumentTheme file
settingsflags.3?Vector<InputThemeSettings>Theme settings

returns

Theme

errors (3)

codeerrordescription
400BUSINESS_CONNECTION_NOT_ALLOWEDThis 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.
400THEME_INVALIDInvalid theme provided.
401AUTH_KEY_UNREGISTEREDThe 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×

idlayers
#3b8ea202105–106
#5cb367d5107–133
#2bf40ccc134–229