Toloka documentation

reply_message_thread

toloka.client.TolokaClient.reply_message_thread | Source code

reply_message_thread(
    self,
    message_thread_id: str,
    reply: MessageThreadReply
)

Replies to a message in thread

Parameters Description

Parameters Type Description
message_thread_id str

In which thread to reply.

reply MessageThreadReply

Reply message.

Examples:

message_threads = toloka_client.get_message_threads(folder='UNREAD')
message_reply = {'EN': 'Thank you for your message! I will get back to you soon.'}
for thread in message_threads:
    toloka_client.reply_message_thread(message_thread_id=thread.id, reply=toloka.message_thread.MessageThreadReply(text=message_reply))