InputThemeSettings

class pyrogram.raw.types.InputThemeSettings

Theme settings

Constructor of InputThemeSettings.

Details:
  • Layer: 223

  • ID: 8FDE504F

Parameters:
  • base_theme (BaseTheme) – Default theme on which this theme is based

  • accent_color (int 32-bit) – Accent color, ARGB format

  • message_colors_animated (bool, optional) – If set, the freeform gradient fill needs to be animated on every sent message

  • outbox_accent_color (int 32-bit, optional) – Accent color of outgoing messages in ARGB format

  • message_colors (List of int 32-bit, optional) – The fill to be used as a background for outgoing messages, in RGB24 format. If just one or two equal colors are provided, describes a solid fill of a background. If two different colors are provided, describes the top and bottom colors of a 0-degree gradient.If three or four colors are provided, describes a freeform gradient fill of a background.

  • wallpaper (InputWallPaper, optional) – inputWallPaper or inputWallPaperSlug when passing wallpaper files for image or pattern wallpapers, inputWallPaperNoFile with id=0 otherwise.

  • wallpaper_settings (WallPaperSettings, optional) – Wallpaper settings.

TL Schema

inputThemeSettings#8fde504f
flags:#
message_colors_animated:flags.2?true
base_theme:BaseTheme
accent_color:int
outbox_accent_color:flags.3?int
message_colors:flags.0?Vector<int>
wallpaper:flags.1?InputWallPaper
wallpaper_settings:flags.1?WallPaperSettings

= InputThemeSettings

Parameter Tree

InputThemeSettings
├── message_colors_animatedtrue (optional)
├── base_themeBaseTheme
│ ├── BaseThemeClassic
│ ├── BaseThemeDay
│ ├── BaseThemeNight
│ ├── BaseThemeTinted
│ └── BaseThemeArctic
├── accent_colorint
├── outbox_accent_colorint (optional)
├── message_colorsVector < int > (optional)
├── wallpaperInputWallPaper (optional)
│ ├── InputWallPaper
│ │ ├── idlong
│ │ └── access_hashlong
│ ├── InputWallPaperSlug
│ │ └── slugstring
│ └── InputWallPaperNoFile
│ └── idlong
└── wallpaper_settingsWallPaperSettings (optional)
├── blurtrue (optional)
├── motiontrue (optional)
├── background_colorint (optional)
├── second_background_colorint (optional)
├── third_background_colorint (optional)
├── fourth_background_colorint (optional)
├── intensityint (optional)
├── rotationint (optional)
└── emoticonstring (optional)

Example

InputThemeSettings(
    base_theme=BaseThemeClassic(),
    accent_color=0,
)