code: def get_dialog(session, unread=False, important=False, unanswered=False):
          
          response = session.fetch("messages.getDialogs", unread=unread, important=important, unanswered=unanswered)
          dialog_json_items = response["items"]
          return (Message.from_json(session, dialog_json["message"]) for dialog_json in dialog_json_items)
docs: https://vk.com/dev/messages.getDialogs