code: def filter(self, record: logging.LogRecord):
          
          update = types.Update.get_current(True)
          if update:
              for key, value in self.make_prefix(self.prefix, self.process_update(update)):
                  setattr(record, key, value)
  
          return True
docs: Extend LogRecord by data from Telegram Update object.
  
          :param record:
          :return: