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_computed_fields: ClassVar[Dict[str, ComputedFieldInfo]] = {}

A dictionary of computed field names and their corresponding ComputedFieldInfo objects.

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