class_docstr: base class to work with chatbot memory
class_docstr_tok: ["base","class","to","work","with","chatbot","memory"]
docstr: hide messages from history
docstr_tok: ["hide","messages","from","history"]
code: def _apply_hiding(self, chat_id, history):
      """
      hide messages from history
      """
      before = self._hide_history_before.get(chat_id)
  
      if before is None:
          return history
  
      return [msg for msg in history if msg.sent_at >= before]
  
imports: from mindsdb_sql.parser.ast import Identifier, Select, BinaryOperation, Constant, OrderBy
  from mindsdb.interfaces.storage import db
  from .types import ChatBotMessage
label_desc: Use image node_id 4 for calling the BaseMemory obj's underlying member method code with example usage: obj._apply_hiding(chat_id, history) and returns: unknown, history