peyk.platforms.telegram.types.background_fill_gradient

Classes

BackgroundFillGradient([type, top_color, ...])

The background is a gradient fill.

class peyk.platforms.telegram.types.background_fill_gradient.BackgroundFillGradient(type: str = 'gradient', top_color: int = 0, bottom_color: int = 0, rotation_angle: int = 0)[source]

Bases: object

The background is a gradient fill.

Variables:
  • type (str) – Type of the background fill, always ‘gradient’

  • 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

type: str = 'gradient'
top_color: int = 0
bottom_color: int = 0
rotation_angle: int = 0
classmethod from_dict(data: dict | None) BackgroundFillGradient | None[source]

Provides the from dict operation for the Telegram integration.

Parameters:

data – Value used by this operation.

Returns:

Result produced by the operation.