messages.SetChatWallPaper#

class pyrogram.raw.functions.messages.SetChatWallPaper#

Set a custom wallpaper » in a specific private chat with another user.

Details:
  • Layer: 158

  • ID: 8FFACAE1

Parameters:
  • peer (InputPeer) – The private chat where the wallpaper will be set.

  • wallpaper (InputWallPaper, optional) – The wallpaper », obtained as described in the wallpaper documentation »; must not be provided when installing a wallpaper obtained from a messageActionSetChatWallPaper service message (id must be provided, instead).

  • settings (WallPaperSettings, optional) – Wallpaper settings, obtained as described in the wallpaper documentation » or from messageActionSetChatWallPaper.wallpaper.settings.

  • id (int 32-bit, optional) – If the wallpaper was obtained from a messageActionSetChatWallPaper service message, must contain the ID of that message.

Returns:

Updates