telegram api method · layer 229 · #e39a8f03
account.uploadWallPaper
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
| name | type | description |
|---|---|---|
flags | # | Flags, see TL conditional fields |
for_chat | true | Set this flag when uploading wallpapers to be passed to messages.setChatWallPaper. |
file | InputFile | The JPG/PNG wallpaper |
mime_type | string | MIME type of uploaded wallpaper |
settings | WallPaperSettings | Wallpaper settings |
returns
errors (4)
| 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 | WALLPAPER_FILE_INVALID | The specified wallpaper file is invalid. |
| 400 | WALLPAPER_MIME_INVALID | The specified wallpaper MIME type is invalid. |
| 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 93–229 · constructor id changed 2×
| id | layers |
|---|---|
| #c7ba9b4d | 93 |
| #dd853661 | 95–156 |
| #e39a8f03 | 158–229 |