Theme

class pyrogram.raw.base.Theme

Cloud theme

Constructors:

This base type has 1 constructor available.

Theme

Constructor of Theme.

Functions:

This object can be returned by 3 functions.

account.CreateTheme

Create a theme

account.UpdateTheme

Update theme

account.GetTheme

Get theme information

TL Schema

theme#a00e67d6
flags:#
creator:flags.0?true
default:flags.1?true
for_chat:flags.5?true
id:long
access_hash:long
slug:string
title:string
document:flags.2?Document
settings:flags.3?Vector<ThemeSettings>
emoticon:flags.6?string
installs_count:flags.4?int

= Theme

Parameter Tree

Theme
├── creatortrue (optional)
├── defaulttrue (optional)
├── for_chattrue (optional)
├── idlong
├── access_hashlong
├── slugstring
├── titlestring
├── documentDocument (optional)
│ ├── DocumentEmpty
│ │ └── idlong
│ └── Document
│ ├── idlong
│ ├── access_hashlong
│ ├── file_referencebytes
│ ├── dateint
│ ├── mime_typestring
│ ├── sizelong
│ ├── thumbsVector < PhotoSize > (optional)
│ │ ├── PhotoSizeEmpty
│ │ │ └── typestring
│ │ ├── PhotoSize
│ │ │ ├── typestring
│ │ │ ├── wint
│ │ │ ├── hint
│ │ │ └── sizeint
│ │ ├── PhotoCachedSize
│ │ │ ├── typestring
│ │ │ ├── wint
│ │ │ ├── hint
│ │ │ └── bytesbytes
│ │ ├── PhotoStrippedSize
│ │ │ ├── typestring
│ │ │ └── bytesbytes
│ │ ├── PhotoSizeProgressive
│ │ │ ├── typestring
│ │ │ ├── wint
│ │ │ ├── hint
│ │ │ └── sizesVector < int >
│ │ └── PhotoPathSize
│ │ ├── typestring
│ │ └── bytesbytes
│ ├── video_thumbsVector < VideoSize > (optional)
│ │ ├── VideoSize
│ │ │ ├── typestring
│ │ │ ├── wint
│ │ │ ├── hint
│ │ │ ├── sizeint
│ │ │ └── video_start_tsdouble (optional)
│ │ ├── VideoSizeEmojiMarkup
│ │ │ ├── emoji_idlong
│ │ │ └── background_colorsVector < int >
│ │ └── VideoSizeStickerMarkup
│ │ ├── stickersetInputStickerSet
│ │ │ ├── InputStickerSetEmpty
│ │ │ ├── InputStickerSetID
│ │ │ ├── InputStickerSetShortName
│ │ │ ├── InputStickerSetAnimatedEmoji
│ │ │ ├── InputStickerSetDice
│ │ │ ├── InputStickerSetPremiumGifts
│ │ │ └── InputStickerSetTonGifts
│ │ ├── sticker_idlong
│ │ └── background_colorsVector < int >
│ ├── dc_idint
│ └── attributesVector < DocumentAttribute >
│ │ ├── wint
│ │ └── hint
│ │ ├── masktrue (optional)
│ │ ├── altstring
│ │ ├── stickersetInputStickerSet
│ │ │ ├── InputStickerSetEmpty
│ │ │ ├── InputStickerSetID
│ │ │ ├── InputStickerSetShortName
│ │ │ ├── InputStickerSetAnimatedEmoji
│ │ │ ├── InputStickerSetDice
│ │ │ ├── InputStickerSetPremiumGifts
│ │ │ └── InputStickerSetTonGifts
│ │ └── mask_coordsMaskCoords (optional)
│ │ └── MaskCoords
│ │ ├── round_messagetrue (optional)
│ │ ├── supports_streamingtrue (optional)
│ │ ├── nosoundtrue (optional)
│ │ ├── durationdouble
│ │ ├── wint
│ │ ├── hint
│ │ ├── preload_prefix_sizeint (optional)
│ │ ├── video_start_tsdouble (optional)
│ │ └── video_codecstring (optional)
│ │ ├── voicetrue (optional)
│ │ ├── durationint
│ │ ├── titlestring (optional)
│ │ ├── performerstring (optional)
│ │ └── waveformbytes (optional)
│ │ └── file_namestring
│ ├── freetrue (optional)
│ ├── text_colortrue (optional)
│ ├── altstring
│ └── stickersetInputStickerSet
│ ├── InputStickerSetEmpty
│ ├── InputStickerSetID
│ ├── InputStickerSetDice
├── settingsVector < ThemeSettings > (optional)
│ └── 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
│ │ │ └── Document
│ │ └── settingsWallPaperSettings (optional)
│ │ └── WallPaperSettings
│ └── WallPaperNoFile
│ ├── idlong
│ ├── defaulttrue (optional)
│ ├── darktrue (optional)
│ └── settingsWallPaperSettings (optional)
│ └── WallPaperSettings
├── emoticonstring (optional)
└── installs_countint (optional)

Example

Theme(
    creator=None,
    default=None,
    for_chat=None,
    id=0,
    access_hash=0,
    slug="text",
    title="text",
    document=DocumentEmpty(id=0),
    settings=[
            ThemeSettings(
                message_colors_animated=None,
                base_theme=BaseThemeClassic(),
                accent_color=0,
                outbox_accent_color=None,
                message_colors=None,
                wallpaper=None
            )
        ],
    emoticon="text",
    installs_count=0,
)