code: def messages(path, thread, fmt, nocolor, timezones, utc, noprogress, resolve, directory):
      
      with colorize_output(nocolor):
          try:
              chat_history = _process_history(
                  path=path, thread=thread, timezones=timezones,
                  utc=utc, noprogress=noprogress, resolve=resolve)
          except ProcessingFailure:
              return
          if directory:
              set_all_color(enabled=False)
          write(fmt, chat_history, directory or sys.stdout)
docs: Conversion of Facebook chat history.