def METHOD_NAME(self, fail_time, fail_trace):
    import telegram
    if self.failed_text is None:
        return
    self.run["fail_trace"] = fail_trace
    self.run["error"] = fail_trace[-1].strip()
    self.run["fail_time"] = fail_time
    self.run["elapsed_time"] = td_format(fail_time - self.run["start_time"])
    try:
        self.bot.send_message(
            chat_id=self.chat_id,
            text=self.get_failed_text(),
            disable_notification=False,
            parse_mode=telegram.ParseMode.MARKDOWN,
        )
    except Exception as e:
        log = logging.getLogger("telegram-observer")
        log.warning("failed to send failed_event message via telegram.", exc_info=e)