toloka.client.message_thread.MessageThread
| Source code
MessageThread( self, *, id: Optional[str] = None, topic: Optional[Dict[str, str]] = None, interlocutors_inlined: Optional[bool] = None, interlocutors: Optional[List[Interlocutor]] = None, messages_inlined: Optional[bool] = None, messages: Optional[List[Message]] = None, meta: Optional[Meta] = None, answerable: Optional[bool] = None, folders: Optional[List[Folder]] = None, compose_details: Optional[ComposeDetails] = None, created: Optional[datetime] = None)
A message thread.
A message thread is created when you send a new message. Then responses are placed to the thread.
Until the first response is received the message thread is in the UNREAD
folder.
If the message has several recipients then a message thread is created for each recipient when they responds.
Parameters | Type | Description |
---|---|---|
id | Optional[str] | The ID of the thread. |
topic | Optional[Dict[str, str]] | The message thread title. |
interlocutors_inlined | Optional[bool] | The way of accessing information about the sender and recipients:
|
interlocutors | Optional[List[Interlocutor]] | A list with information about the sender and recipients, sorted by IDs. |
messages_inlined | Optional[bool] | The way of accessing messages:
|
messages | Optional[List[Message]] | A list with thread messages. The list is sorted by creation date: newer messages come first. |
meta | Optional[Meta] | Thread meta information. |
answerable | Optional[bool] |
|
folders | Optional[List[Folder]] | Folders containing the thread. |
compose_details | Optional[ComposeDetails] | The details of selecting recipients. This information is provided if the first message in the thread was yours. |
created | Optional[datetime] | The date and time when the first message in the thread was created. |
Last updated: August 28, 2023