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
├── creator → true (optional)
├── default → true (optional)
├── for_chat → true (optional)
├── id → long
├── access_hash → long
├── slug → string
├── title → string
├── document → Document (optional)
│ ├── DocumentEmpty
│ │ └── id → long
│ └── Document
│ ├── id → long
│ ├── access_hash → long
│ ├── file_reference → bytes
│ ├── date → int
│ ├── mime_type → string
│ ├── size → long
│ ├── thumbs → Vector < PhotoSize > (optional)
│ │ ├── PhotoSizeEmpty
│ │ │ └── type → string
│ │ ├── PhotoSize
│ │ │ ├── type → string
│ │ │ ├── w → int
│ │ │ ├── h → int
│ │ │ └── size → int
│ │ ├── PhotoCachedSize
│ │ │ ├── type → string
│ │ │ ├── w → int
│ │ │ ├── h → int
│ │ │ └── bytes → bytes
│ │ ├── PhotoStrippedSize
│ │ │ ├── type → string
│ │ │ └── bytes → bytes
│ │ ├── PhotoSizeProgressive
│ │ │ ├── type → string
│ │ │ ├── w → int
│ │ │ ├── h → int
│ │ │ └── sizes → Vector < int >
│ │ └── PhotoPathSize
│ │ ├── type → string
│ │ └── bytes → bytes
│ ├── video_thumbs → Vector < VideoSize > (optional)
│ │ ├── VideoSize
│ │ │ ├── type → string
│ │ │ ├── w → int
│ │ │ ├── h → int
│ │ │ ├── size → int
│ │ │ └── video_start_ts → double (optional)
│ │ ├── VideoSizeEmojiMarkup
│ │ │ ├── emoji_id → long
│ │ │ └── background_colors → Vector < int >
│ │ └── VideoSizeStickerMarkup
│ │ ├── stickerset → InputStickerSet
│ │ │ ├── InputStickerSetEmpty
│ │ │ ├── InputStickerSetID
│ │ │ ├── InputStickerSetShortName
│ │ │ ├── InputStickerSetAnimatedEmoji
│ │ │ ├── InputStickerSetDice
│ │ │ ├── InputStickerSetPremiumGifts
│ │ │ └── InputStickerSetTonGifts
│ │ ├── sticker_id → long
│ │ └── background_colors → Vector < int >
│ ├── dc_id → int
│ └── attributes → Vector < DocumentAttribute >
│ │ ├── w → int
│ │ └── h → int
│ │ ├── mask → true (optional)
│ │ ├── alt → string
│ │ ├── stickerset → InputStickerSet
│ │ │ ├── InputStickerSetEmpty
│ │ │ ├── InputStickerSetID
│ │ │ ├── InputStickerSetShortName
│ │ │ ├── InputStickerSetAnimatedEmoji
│ │ │ ├── InputStickerSetDice
│ │ │ ├── InputStickerSetPremiumGifts
│ │ │ └── InputStickerSetTonGifts
│ │ └── mask_coords → MaskCoords (optional)
│ │ └── MaskCoords
│ │ ├── round_message → true (optional)
│ │ ├── supports_streaming → true (optional)
│ │ ├── nosound → true (optional)
│ │ ├── duration → double
│ │ ├── w → int
│ │ ├── h → int
│ │ ├── preload_prefix_size → int (optional)
│ │ ├── video_start_ts → double (optional)
│ │ └── video_codec → string (optional)
│ │ ├── voice → true (optional)
│ │ ├── duration → int
│ │ ├── title → string (optional)
│ │ ├── performer → string (optional)
│ │ └── waveform → bytes (optional)
│ │ └── file_name → string
│ ├── free → true (optional)
│ ├── text_color → true (optional)
│ ├── alt → string
│ └── stickerset → InputStickerSet
│ ├── InputStickerSetEmpty
│ ├── InputStickerSetID
│ ├── InputStickerSetDice
├── settings → Vector < ThemeSettings > (optional)
│ └── ThemeSettings
│ ├── message_colors_animated → true (optional)
│ ├── base_theme → BaseTheme
│ │ ├── BaseThemeClassic
│ │ ├── BaseThemeDay
│ │ ├── BaseThemeNight
│ │ ├── BaseThemeTinted
│ │ └── BaseThemeArctic
│ ├── accent_color → int
│ ├── outbox_accent_color → int (optional)
│ ├── message_colors → Vector < int > (optional)
│ └── wallpaper → WallPaper (optional)
│ ├── WallPaper
│ │ ├── id → long
│ │ ├── creator → true (optional)
│ │ ├── default → true (optional)
│ │ ├── pattern → true (optional)
│ │ ├── dark → true (optional)
│ │ ├── access_hash → long
│ │ ├── slug → string
│ │ ├── document → Document
│ │ │ ├── DocumentEmpty
│ │ │ └── Document
│ │ └── settings → WallPaperSettings (optional)
│ │ └── WallPaperSettings
│ └── WallPaperNoFile
│ ├── id → long
│ ├── default → true (optional)
│ ├── dark → true (optional)
│ └── settings → WallPaperSettings (optional)
│ └── WallPaperSettings
├── emoticon → string (optional)
└── installs_count → int (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,
)