ThemeSettings
- class pyrogram.raw.types.ThemeSettings
Theme settings
Constructor of
ThemeSettings.- Details:
Layer:
223ID:
FA58B6D4
- Parameters:
base_theme (
BaseTheme) – Base themeaccent_color (
int32-bit) – Accent color, ARGB formatmessage_colors_animated (
bool, optional) – If set, the freeform gradient fill needs to be animated on every sent message.outbox_accent_color (
int32-bit, optional) – Accent color of outgoing messages in ARGB formatmessage_colors (List of
int32-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
true (optional)BaseThemeBaseThemeClassicBaseThemeDayBaseThemeNightBaseThemeTintedBaseThemeArcticintint (optional)Vector < int > (optional)WallPaper (optional)WallPaperlongtrue (optional)true (optional)true (optional)true (optional)longstringDocumentDocumentEmptylongDocumentlonglongbytesintstringlongVector < PhotoSize > (optional)PhotoSizeEmptyPhotoSizePhotoCachedSizePhotoStrippedSizePhotoSizeProgressivePhotoPathSizeVector < VideoSize > (optional)VideoSizeVideoSizeEmojiMarkupVideoSizeStickerMarkupintVector < DocumentAttribute >DocumentAttributeImageSizeDocumentAttributeAnimatedDocumentAttributeStickerDocumentAttributeVideoDocumentAttributeAudioDocumentAttributeFilenameDocumentAttributeHasStickersDocumentAttributeCustomEmojiWallPaperSettings (optional)WallPaperSettingstrue (optional)true (optional)int (optional)int (optional)int (optional)int (optional)int (optional)int (optional)string (optional)WallPaperNoFilelongtrue (optional)true (optional)WallPaperSettings (optional)true (optional)true (optional)int (optional)int (optional)int (optional)int (optional)int (optional)int (optional)string (optional)Example
ThemeSettings(
base_theme=BaseThemeClassic(),
accent_color=0,
)