toggle menu
ktgbotapi
common
switch theme
search in API
tgbotapi.core
/
dev.inmo.tgbotapi.types
/
BackgroundFill
/
Gradient
Gradient
@
Serializable
data
class
Gradient
(
val
topColor
:
HEXAColor
,
val
bottomColor
:
HEXAColor
,
val
rotationAngle
:
Short
)
:
BackgroundFill
Members
Constructors
Gradient
Link copied to clipboard
constructor
(
topColor
:
HEXAColor
,
bottomColor
:
HEXAColor
,
rotationAngle
:
Short
)
Types
Companion
Link copied to clipboard
object
Companion
Properties
bottom
Color
Link copied to clipboard
@
SerialName
(
value
=
"bottom_color"
)
@
Serializable
(
with
=
IntRGB24HEXAColorSerializer::class
)
val
bottomColor
:
HEXAColor
colors
Link copied to clipboard
@
Transient
open
override
val
colors
:
List
<
HEXAColor
>
rotation
Angle
Link copied to clipboard
@
SerialName
(
value
=
"rotation_angle"
)
val
rotationAngle
:
Short
top
Color
Link copied to clipboard
@
SerialName
(
value
=
"top_color"
)
@
Serializable
(
with
=
IntRGB24HEXAColorSerializer::class
)
val
topColor
:
HEXAColor
type
Link copied to clipboard
@
EncodeDefault
@
SerialName
(
value
=
"type"
)
open
override
val
type
:
String