telegram api method · layer 229 · #e39a8f03

account.uploadWallPaper

usable by users

Create and upload a new wallpaper

definition

account.uploadWallPaper#e39a8f03 flags:# for_chat:flags.0?true file:InputFile mime_type:string settings:WallPaperSettings = WallPaper;

parameters

nametypedescription
flags#Flags, see TL conditional fields
for_chatflags.0?trueSet this flag when uploading wallpapers to be passed to messages.setChatWallPaper.
fileInputFileThe JPG/PNG wallpaper
mime_typestringMIME type of uploaded wallpaper
settingsWallPaperSettingsWallpaper settings

returns

WallPaper

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.
400WALLPAPER_FILE_INVALIDThe specified wallpaper file is invalid.
400WALLPAPER_MIME_INVALIDThe specified wallpaper 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 93–229 · constructor id changed 2×

idlayers
#c7ba9b4d93
#dd85366195–156
#e39a8f03158–229