telegram api method · layer 229 · #652e4400

account.createTheme

usable by users

Create a theme

definition

account.createTheme#652e4400 flags:# slug:string title:string document:flags.2?InputDocument settings:flags.3?Vector<InputThemeSettings> = Theme;

parameters

nametypedescription
flags#Flags, see TL conditional fields
slugstringUnique theme ID used to generate theme deep links, can be empty to autogenerate a random ID.
titlestringTheme name
documentflags.2?InputDocumentTheme file
settingsflags.3?Vector<InputThemeSettings>Theme settings, multiple values can be provided for the different base themes (day/night mode, etc).

returns

Theme

errors (4)

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_MIME_INVALIDThe theme's MIME type is invalid.
400THEME_TITLE_INVALIDThe specified theme title is invalid.
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
#2b7ffd7f105–106
#8432c21f107–133
#652e4400134–229