Payload

toloka.client.project.template_builder.actions.NotifyActionV1.Payload | Source code

Payload(
self,
content: Optional[Any] = None,
theme: Optional[Union[BaseComponent, Theme]] = None,
*,
delay: Optional[Union[BaseComponent, float]] = None,
duration: Optional[Union[BaseComponent, float]] = None
)

Parameters for the message.

Parameters Description

ParametersTypeDescription
contentOptional[Any]

Message text

themeOptional[Union[BaseComponent, Theme]]

The background color of the message.

delayOptional[Union[BaseComponent, float]]

The duration of the delay (in milliseconds) before the message appears.

durationOptional[Union[BaseComponent, float]]

The duration of the message activity (in milliseconds), which includes the duration of the delay before displaying it. For example, if duration is 1000 and delay is 400, the message will be displayed for 600 milliseconds.

Toloka-Kit
OverviewGetting OAuth tokenQuick start
Recipes
Reference
toloka.client
toloka.async_client
toloka.autoquality [autoquality]
toloka.metrics
toloka.streaming