messages.SetChatWallPaper

class pyrogram.raw.functions.messages.SetChatWallPaper

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

Details:
  • Layer: 187

  • ID: 8FFACAE1

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

  • for_both (bool, optional) – Only for Premium users, sets the specified wallpaper for both users of the chat, without requiring confirmation from the other user.

  • revert (bool, optional) – 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.

  • 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