toloka.client.TolokaClient.compose_message_thread
| Source code
Creates a message thread and sends the first thread message to Tolokers.
Parameters | Type | Description |
---|---|---|
recipients_select_type | Union[RecipientsSelectType, str, None] | The way of specifying message recipients. |
topic | Optional[Dict[str, str]] | The message thread title. |
text | Optional[Dict[str, str]] | The message text. |
answerable | Optional[bool] |
|
recipients_ids | Optional[List[str]] | A list of Toloker IDs. It is filled if |
recipients_filter | Optional[FilterCondition] | A filter for selecting Tolokers. It is set if |
Returns:
The created message thread.
Return type:
Examples:
A message is sent to all Tolokers who have tried to complete your tasks. The message is in English. Tolokers can't reply to your message.
message_text = "Amazing job! We've just trained our first model with the data you prepared for us. Thank you!"toloka_client.compose_message_thread( recipients_select_type='ALL', topic={'EN': 'Thank you!'}, text={'EN': message_text}, answerable=False)
Last updated: August 28, 2023