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
)

Sent message to a Toloker.

Parameters Description

ParametersTypeDescription
recipients_select_typeOptional[RecipientsSelectType]

Method for specifying recipients

topicOptional[Dict[str, str]]

Post title. You can provide a title in several languages (the message will come in the Toloker's language). Format: "<language RU/EN/TR/ID/FR>": "<topic text>".

textOptional[Dict[str, str]]

Message text. You can provide text in several languages (the message will come in the Toloker's language). Format: "<language RU/EN/TR/ID/FR>": "<message text>".

answerableOptional[bool]

Ability to reply to a message:

  • True — The Toloker can respond to the message.
  • False — The Toloker can't respond to the message.
recipients_idsOptional[List[str]]

List of IDs of Tolokers to whom the message will be sent.

recipients_filterOptional[FilterCondition]

Filter to select recipients.

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