ThemeSettings

class pyrogram.raw.types.ThemeSettings

Theme settings

Constructor of ThemeSettings.

Details:
  • Layer: 223

  • ID: FA58B6D4

Parameters:
  • base_theme (BaseTheme) – Base theme

  • 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 (WallPaper, optional) – Wallpaper

TL Schema

themeSettings#fa58b6d4
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?WallPaper

= ThemeSettings

Parameter Tree

ThemeSettings
├── message_colors_animatedtrue (optional)
├── base_themeBaseTheme
│ ├── BaseThemeClassic
│ ├── BaseThemeDay
│ ├── BaseThemeNight
│ ├── BaseThemeTinted
│ └── BaseThemeArctic
├── accent_colorint
├── outbox_accent_colorint (optional)
├── message_colorsVector < int > (optional)
└── wallpaperWallPaper (optional)
├── WallPaper
│ ├── idlong
│ ├── creatortrue (optional)
│ ├── defaulttrue (optional)
│ ├── patterntrue (optional)
│ ├── darktrue (optional)
│ ├── access_hashlong
│ ├── slugstring
│ ├── documentDocument
│ │ ├── DocumentEmpty
│ │ │ └── idlong
│ │ └── Document
│ │ ├── idlong
│ │ ├── access_hashlong
│ │ ├── file_referencebytes
│ │ ├── dateint
│ │ ├── mime_typestring
│ │ ├── sizelong
│ │ ├── thumbsVector < PhotoSize > (optional)
│ │ │ ├── PhotoSizeEmpty
│ │ │ ├── PhotoSize
│ │ │ ├── PhotoCachedSize
│ │ │ ├── PhotoStrippedSize
│ │ │ ├── PhotoSizeProgressive
│ │ │ └── PhotoPathSize
│ │ ├── video_thumbsVector < VideoSize > (optional)
│ │ │ ├── VideoSize
│ │ │ ├── VideoSizeEmojiMarkup
│ │ │ └── VideoSizeStickerMarkup
│ │ ├── dc_idint
│ │ └── attributesVector < DocumentAttribute >
│ │ ├── DocumentAttributeImageSize
│ │ ├── DocumentAttributeAnimated
│ │ ├── DocumentAttributeSticker
│ │ ├── DocumentAttributeVideo
│ │ ├── DocumentAttributeAudio
│ │ ├── DocumentAttributeFilename
│ └── settingsWallPaperSettings (optional)
│ └── WallPaperSettings
│ ├── 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)
└── WallPaperNoFile
├── idlong
├── defaulttrue (optional)
├── darktrue (optional)
└── 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

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