getHistoryMessages