account.CreateTheme#

class pyrogram.raw.functions.account.CreateTheme#

Create a theme.

Details:
  • Layer: 158

  • ID: 652E4400

Parameters:
  • slug (str) – Unique theme ID used to generate theme deep links, can be empty to autogenerate a random ID.

  • title (str) – Theme name.

  • document (InputDocument, optional) – Theme file.

  • settings (List of InputThemeSettings, optional) – Theme settings, multiple values can be provided for the different base themes (day/night mode, etc).

Returns:

Theme