messages.setChatWallPaper
Set a custom wallpaper » in a specific private chat with another user.
Set a custom [wallpaper »](https://core.telegram.org/api/wallpapers.md) in a specific private chat with another user.
| Name | Typ | Erforderlich | Beschreibung |
|---|---|---|---|
for_both | true | Nein | Only for [Premium](https://core.telegram.org/api/premium.md) users, sets the specified wallpaper for both users of the chat, without requiring confirmation from the other user. |
revert | true | Nein | If we don't like the new wallpaper the other user of the chat has chosen for us using the `for_both` flag, we can re-set our previous wallpaper just on our side using this flag. |
peer | InputPeer | Ja | The private chat where the wallpaper will be set |
wallpaper | InputWallPaper | Nein | The [wallpaper »](https://core.telegram.org/api/wallpapers.md), obtained as described in the [wallpaper documentation »](https://core.telegram.org/api/wallpapers.md#uploading-wallpapers); must **not** be provided when installing a wallpaper obtained from a [messageActionSetChatWallPaper](https://core.telegram.org/constructor/messageActionSetChatWallPaper.md) service message (`id` must be provided, instead). |
settings | WallPaperSettings | Nein | Wallpaper settings, obtained as described in the [wallpaper documentation »](https://core.telegram.org/api/wallpapers.md#uploading-wallpapers) or from [messageActionSetChatWallPaper](https://core.telegram.org/constructor/messageActionSetChatWallPaper.md).`wallpaper`.`settings`. |
id | int | Nein | If the wallpaper was obtained from a [messageActionSetChatWallPaper](https://core.telegram.org/constructor/messageActionSetChatWallPaper.md) service message, must contain the ID of that message. |
Antworten
Updates
MTProto RPC
- 400 · PEER_ID_INVALID – Die angegebene Peer-ID ist ungültig.
- 400 · WALLPAPER_INVALID – Das angegebene Hintergrundbild ist ungültig.
- 400 · WALLPAPER_NOT_FOUND – Das angegebene Hintergrundbild konnte nicht gefunden werden.