peyk.platforms.telegram.types.chat_background

Classes

ChatBackground([type])

This object represents a chat background.

class peyk.platforms.telegram.types.chat_background.ChatBackground(type: BackgroundTypeFill | BackgroundTypeWallpaper | BackgroundTypePattern | BackgroundTypeChatTheme | None = None)[source]

Bases: object

This object represents a chat background.

Variables:

type (peyk.platforms.telegram.types.background_type_fill.BackgroundTypeFill | peyk.platforms.telegram.types.background_type_wallpaper.BackgroundTypeWallpaper | peyk.platforms.telegram.types.background_type_pattern.BackgroundTypePattern | peyk.platforms.telegram.types.background_type_chat_theme.BackgroundTypeChatTheme | None) – Type of the background

type: BackgroundTypeFill | BackgroundTypeWallpaper | BackgroundTypePattern | BackgroundTypeChatTheme | None = None
classmethod from_dict(data: dict | None) ChatBackground | None[source]

Provides the from dict operation for the Telegram integration.

Parameters:

data – Value used by this operation.

Returns:

Result produced by the operation.