peyk.platforms.telegram.types.background_type_pattern

Classes

BackgroundTypePattern([type, document, ...])

The background is a .PNG or .TGV (gzipped subset of SVG with MIME type 'application/x-tgwallpattern') pattern to be combined with the background fill chosen by the user.

class peyk.platforms.telegram.types.background_type_pattern.BackgroundTypePattern(type: str = 'pattern', document: Document | None = None, fill: BackgroundFillSolid | BackgroundFillGradient | BackgroundFillFreeformGradient | None = None, intensity: int = 0, is_inverted: bool | None = None, is_moving: bool | None = None)[source]

Bases: object

The background is a .PNG or .TGV (gzipped subset of SVG with MIME type ‘application/x-tgwallpattern’) pattern to be combined with the background fill chosen by the user.

Variables:
type: str = 'pattern'
document: Document | None = None
fill: BackgroundFillSolid | BackgroundFillGradient | BackgroundFillFreeformGradient | None = None
intensity: int = 0
is_inverted: bool | None = None
is_moving: bool | None = None
classmethod from_dict(data: dict | None) BackgroundTypePattern | None[source]

Provides the from dict operation for the Telegram integration.

Parameters:

data – Value used by this operation.

Returns:

Result produced by the operation.