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 __init__(
      self,
      bot,
      chat_id,
      silent_completion=False,
      priority=DEFAULT_TELEGRAM_PRIORITY,
      **kwargs,
  ):
      self.silent_completion = silent_completion
      self.chat_id = chat_id
      self.bot = bot
  
      self.started_text = (
          "♻ *{experiment[name]}* "
          "started at _{start_time}_ "
          "on host `{host_info[hostname]}`"
      )
      self.completed_text = (
          "✅ *{experiment[name]}* "
          "completed after _{elapsed_time}_ "
          "with result=`{result}`"
      )
      self.interrupted_text = (
          "⚠ *{experiment[name]}* " "interrupted after _{elapsed_time}_"
      )
      self.failed_text = (
          "❌ *{experiment[name]}* failed after "
          "_{elapsed_time}_ with `{error}`\n\n"
          "Backtrace:\n```{backtrace}```"
      )
      self.run = None
      self.priority = priority
  
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 3 to create a new TelegramObserver object from inherited base classes: RunObserver with example: obj = TelegramObserver(bot, chat_id, silent_completion, priority)