BackgroundTypePattern¶
- class litegram.types.background_type_pattern.BackgroundTypePattern(*, type: Literal['pattern'] = 'pattern', document: Document, fill: BackgroundFillUnion, intensity: int, is_inverted: bool | None = None, is_moving: bool | None = None, **extra_data: Any)[source]¶
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.
Source: https://core.telegram.org/bots/api#backgroundtypepattern
- type: Literal['pattern']¶
Type of the background, always ‘pattern’
- fill: BackgroundFillUnion¶
The background fill that is combined with the pattern