code: def setTypingStatus(self, status, thread_id=None, thread_type=None):
          
          thread_id, thread_type = self._getThread(thread_id, thread_type)
  
          data = {
              "typ": status.value,
              "thread": thread_id,
              "to": thread_id if thread_type == ThreadType.USER else "",
              "source": "mercury-chat",
          }
          j = self._post(self.req_url.TYPING, data, fix_request=True, as_json=True)
docs: Sets users typing status in a thread
  
          :param status: Specify the typing status
          :param thread_id: User/Group ID to change status in. See :ref:`intro_threads`
          :param thread_type: See :ref:`intro_threads`
          :type status: models.TypingStatus
          :type thread_type: models.ThreadType
          :raises: FBchatException if request failed