Toloka documentation

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

Parameters Type Description
content Optional[Any]

Message text

theme Optional[Union[BaseComponent, Theme]]

The background color of the message.

delay Optional[Union[BaseComponent, float]]

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

duration Optional[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.