BackgroundFillGradient¶
Added in version 21.2.
- class telegram.BackgroundFillGradient(top_color, bottom_color, rotation_angle, *, api_kwargs=None)[source]¶
Bases:
telegram.BackgroundFillThe 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_colorandrotation_angleare equal.Added in version 21.2.
- Parameters:
top_color (
int) – Top color of the gradient in the RGB24 format.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.