class_docstr: Sends a message to Telegram upon completion/failing of an experiment.
class_docstr_tok: ["Sends","a","message","to","Telegram","upon","completion\/failing","of","an","experiment","."]
code: def started_event(
      self,
      ex_info,
      command,
      host_info,
      start_time,
      config,
      meta_info,
      _id,
  ):
      import telegram
  
      self.run = {
          "_id": _id,
          "config": config,
          "start_time": start_time,
          "experiment": ex_info,
          "command": command,
          "host_info": host_info,
      }
      if self.started_text is None:
          return
      try:
          self.bot.send_message(
              chat_id=self.chat_id,
              text=self.get_started_text(),
              disable_notification=True,
              parse_mode=telegram.ParseMode.MARKDOWN,
          )
      except Exception as e:
          log = logging.getLogger("telegram-observer")
          log.warning(
              "failed to send start_event message via telegram.",
              exc_info=e,
          )
  
file_path: sacred/sacred/observers/telegram_obs.py
imports: from sacred.observers.base import RunObserver, td_format
  from sacred.config.config_files import load_config_file
  import logging
label_desc: Use image node_id 4 for calling the TelegramObserver obj's underlying member method code with example usage: obj.started_event(ex_info, command, host_info, start_time, config, meta_info, _id) without return types