BackgroundTypeFill#
- class aiogram.types.background_type_fill.BackgroundTypeFill(*, type: Literal['fill'] = 'fill', fill: BackgroundFillSolid | BackgroundFillGradient | BackgroundFillFreeformGradient, dark_theme_dimming: int, **extra_data: Any)[source]#
The background is automatically filled based on the selected colors.
Source: https://core.telegram.org/bots/api#backgroundtypefill
- type: Literal['fill']#
Type of the background, always ‘fill’
- fill: BackgroundFillSolid | BackgroundFillGradient | BackgroundFillFreeformGradient#
The background fill
- model_computed_fields: ClassVar[dict[str, ComputedFieldInfo]] = {}#
A dictionary of computed field names and their corresponding ComputedFieldInfo objects.
- model_post_init(_ModelMetaclass__context: Any) None #
We need to both initialize private attributes and call the user-defined model_post_init method.
- dark_theme_dimming: int#
Dimming of the background in dark themes, as a percentage; 0-100