BackgroundFillGradient

Added in version 21.2.

class telegram.BackgroundFillGradient(top_color, bottom_color, rotation_angle, *, api_kwargs=None)[source]

Bases: telegram.BackgroundFill

The background is a gradient fill.

Objects of this class are comparable in terms of equality. Two objects of this class are considered equal, if their top_color, bottom_color and rotation_angle are equal.

Added in version 21.2.

Parameters:
type[source]

Type of the background fill. Always GRADIENT.

Type:

str

top_color[source]

Top color of the gradient in the RGB24 format.

Type:

int

bottom_color[source]

Bottom color of the gradient in the RGB24 format.

Type:

int

rotation_angle[source]

Clockwise rotation angle of the background fill in degrees; 0-359.

Type:

int