account.UploadWallPaper

class pyrogram.raw.functions.account.UploadWallPaper

Create and upload a new wallpaper

Details:
  • Layer: 194

  • ID: E39A8F03

Parameters:
  • file (InputFile) – The JPG/PNG wallpaper

  • mime_type (str) – MIME type of uploaded wallpaper

  • settings (WallPaperSettings) – Wallpaper settings

  • for_chat (bool, optional) – Set this flag when uploading wallpapers to be passed to messages.setChatWallPaper.

Returns:

WallPaper