code: def print_facts_telegram(context):
      price = context.curr_base_price
      amount = context.portfolio.positions[context.coin_pair].amount
      pnl = context.portfolio.pnl
      capital_used = context.portfolio.capital_used
      portfolio_value = context.portfolio.portfolio_value
      portfolio_returns = context.portfolio.returns
      starting_cash = context.portfolio.starting_cash
      cash = context.portfolio.cash
  
      msg = """
  Status...
  Price: {}
  Starting cash: {}
  Cash: {}
  Capital used: {}
  Amount: {}
  Portfolio value: {}
  Returns: {}
  PnL: {}
      """.format(
          price,
          starting_cash,
          cash,
          capital_used,
          amount,
          portfolio_value,
          portfolio_returns,
          pnl,
      )
      if (
          hasattr(context, "telegram_bot")
          and context.telegram_bot is not None
      ):
          context.telegram_bot.msg(msg)
  
file_path: catalyst/catalyst/support/issue_216.py
imports: import sys
  import os
  import signal
  import pandas
  from logbook import Logger
  from catalyst import run_algorithm
  from catalyst.api import symbol, record, order
  from catalyst.finance import commission
label_desc: Use image node_id 2 for calling a global function with example usage: print_facts_telegram(context) without return types