BackgroundFillGradient#
- class aiogram.types.background_fill_gradient.BackgroundFillGradient(*, type: Literal['gradient'] = 'gradient', top_color: int, bottom_color: int, rotation_angle: int, **extra_data: Any)[source]#
The background is a gradient fill.
Source: https://core.telegram.org/bots/api#backgroundfillgradient
- type: Literal['gradient']#
Type of the background fill, always ‘gradient’
- top_color: int#
Top color of the gradient in the RGB24 format
- 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.
- bottom_color: int#
Bottom color of the gradient in the RGB24 format
- rotation_angle: int#
Clockwise rotation angle of the background fill in degrees; 0-359