telegram api method · layer 229 · #1c3db333

account.uploadTheme

usable by users

Upload theme

definition

account.uploadTheme#1c3db333 flags:# file:InputFile thumb:flags.0?InputFile file_name:string mime_type:string = Document;

parameters

nametypedescription
flags#Flags, see TL conditional fields
fileInputFilePreviously uploaded theme file with platform-specific colors for UI components, can be left unset when creating themes that only modify the wallpaper or accent colors.
thumbflags.0?InputFileThumbnail
file_namestringFile name
mime_typestringMIME type, must be application/x-tgtheme-{format}, where format depends on the client

returns

Document

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_FILE_INVALIDInvalid theme file provided.
400THEME_MIME_INVALIDThe theme's MIME type 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

idlayers
#1c3db333105–229