Learn R Programming

logger (version 0.4.0)

appender_telegram: Send log messages to a Telegram chat

Description

Send log messages to a Telegram chat

Usage

appender_telegram(
  chat_id = Sys.getenv("TELEGRAM_CHAT_ID"),
  bot_token = Sys.getenv("TELEGRAM_BOT_TOKEN"),
  parse_mode = NULL
)

Value

function taking lines argument

Arguments

chat_id

Unique identifier for the target chat or username of the target channel (in the format @channelusername)

bot_token

Telegram Authorization token

parse_mode

Message parse mode. Allowed values: Markdown or HTML

See Also

Other log_appenders: appender_async(), appender_console(), appender_file(), appender_kinesis(), appender_pushbullet(), appender_slack(), appender_stdout(), appender_syslog(), appender_tee()