Toloka documentation

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 perfromer

Parameters Description

Parameters Type Description
recipients_select_type Optional[RecipientsSelectType]

Method for specifying recipients

topic Optional[Dict[str, str]]

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

text Optional[Dict[str, str]]

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

answerable Optional[bool]

Ability to reply to a message:

  • True — Users can respond to the message.
  • False — Users can't respond to the message.

recipients_ids Optional[List[str]]

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

recipients_filter Optional[FilterCondition]

Filter to select recipients.