max_length for last_message