MessageThreadCompose

toloka.client.message_thread.MessageThreadCompose | Source code

MessageThreadCompose(
self,
*,
recipients_select_type: Union[RecipientsSelectType, str, None] = None,
topic: Optional[Dict[str, str]] = None,
text: Optional[Dict[str, str]] = None,
answerable: Optional[bool] = None,
recipients_ids: Optional[List[str]] = None,
recipients_filter: Optional[FilterCondition] = None
)

Parameters for creating a message thread with the first message.

The topic and text parameters are dictionaries. Two letter language code is a key in the dictionaries. If available, the text in a Toloker preferred language is used.

Parameters description

ParametersTypeDescription
recipients_select_typeOptional[RecipientsSelectType]

The way of specifying message recipients.

topicOptional[Dict[str, str]]

The message thread title.

textOptional[Dict[str, str]]

The message text.

answerableOptional[bool]
  • True — Tolokers can respond to your messages.
  • False — Tolokers can't respond to your messages.
recipients_idsOptional[List[str]]

A list of Toloker IDs. It is filled if recipients_select_type is DIRECT.

recipients_filterOptional[FilterCondition]

A filter for selecting Tolokers. It is set if recipients_select_type is FILTER.

Last updated: August 28, 2023

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