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.
| 名前 | 型 | 必須 | 説明 |
|---|---|---|---|
for_both | true | いいえ | 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 | いいえ | 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 | はい | The private chat where the wallpaper will be set |
wallpaper | InputWallPaper | いいえ | 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 | いいえ | 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 | いいえ | If the wallpaper was obtained from a [messageActionSetChatWallPaper](https://core.telegram.org/constructor/messageActionSetChatWallPaper.md) service message, must contain the ID of that message. |
レスポンス
Updates
MTProto RPC
- 400 · PEER_ID_INVALID — The provided peer id is invalid.
- 400 · WALLPAPER_INVALID — The specified wallpaper is invalid.
- 400 · WALLPAPER_NOT_FOUND — The specified wallpaper could not be found.