BackgroundFillFreeformGradient

Added in version 21.2.

class telegram.BackgroundFillFreeformGradient(colors, *, api_kwargs=None)[source]

Bases: telegram.BackgroundFill

The background is a freeform gradient that rotates after every message in the chat.

Objects of this class are comparable in terms of equality. Two objects of this class are considered equal, if their colors is equal.

Added in version 21.2.

Parameters:

colors (Sequence[int]) – A list of the 3 or 4 base colors that are used to generate the freeform gradient in the RGB24 format

type[source]

Type of the background fill. Always FREEFORM_GRADIENT.

Type:

str

colors[source]

A list of the 3 or 4 base colors that are used to generate the freeform gradient in the RGB24 format

Type:

Sequence[int]