messages.setChatWallPaper
设置自定义壁纸 » 在与其他用户的特定私人聊天中。
在与其他用户的特定私人聊天中设置自定义[壁纸»](https://core.telegram.org/api/wallpapers.md)。
| 名称 | 类型 | 必填 | 描述 |
|---|---|---|---|
for_both | true | 否 | 仅适用于[Premium](https://core.telegram.org/api/premium.md)用户,为聊天双方设置指定壁纸,无需另一方用户确认。 |
revert | true | 否 | 如果我们不喜欢聊天的其他用户使用 `for_both` 标志为我们选择的新壁纸,我们可以使用此标志在我们这边重新设置以前的壁纸。 |
peer | InputPeer | 是的 | 将设置壁纸的私人聊天 |
wallpaper | InputWallPaper | 否 | [壁纸»](https://core.telegram.org/api/wallpapers.md),按照[壁纸文档»](https://core.telegram.org/api/wallpapers.md#uploading-wallpapers)中所述获得;安装从 [messageActionSetChatWallPaper](https://core.telegram.org/constructor/messageActionSetChatWallPaper.md) 服务消息获取的壁纸时,不得**提供**(必须提供`id`)。 |
settings | WallPaperSettings | 否 | 壁纸设置,按照[壁纸文档 »](https://core.telegram.org/api/wallpapers.md#uploading-wallpapers) 中所述或从 [messageActionSetChatWallPaper](https://core.telegram.org/constructor/messageActionSetChatWallPaper.md).`wallpaper`.`settings` 中获取。 |
id | int | 否 | 如果壁纸是从 [messageActionSetChatWallPaper](https://core.telegram.org/constructor/messageActionSetChatWallPaper.md) 服务消息获取的,则必须包含该消息的 ID。 |
回应
Updates
MTProto RPC
- 400 · PEER_ID_INVALID — 提供的对等 ID 无效。
- 400·WALLPAPER_INVALID — 指定的壁纸无效。
- 400·WALLPAPER_NOT_FOUND — 找不到指定的壁纸。