BackgroundFillFreeformGradient¶
- class aiogram.types.background_fill_freeform_gradient.BackgroundFillFreeformGradient(*, type: Literal['freeform_gradient'] = 'freeform_gradient', colors: list[int], **extra_data: Any)[source]¶
The background is a freeform gradient that rotates after every message in the chat.
Source: https://core.telegram.org/bots/api#backgroundfillfreeformgradient
- type: Literal['freeform_gradient']¶
Type of the background fill, always ‘freeform_gradient’
- model_post_init(context: Any, /) None ¶
We need to both initialize private attributes and call the user-defined model_post_init method.
- colors: list[int]¶
A list of the 3 or 4 base colors that are used to generate the freeform gradient in the RGB24 format