upload_wall_paper()

async Client.upload_wall_paper()

Create and upload a new wallpaper.

Usable by Users Bots
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.set_chat_wall_paper.

Returns:

WallPaper – On success, the wallpaper is returned.