1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43
|
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/appenders.R
\name{appender_telegram}
\alias{appender_telegram}
\title{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
)
}
\arguments{
\item{chat_id}{Unique identifier for the target chat or username of
the target channel (in the format @channelusername)}
\item{bot_token}{Telegram Authorization token}
\item{parse_mode}{Message parse mode. Allowed values: Markdown or
HTML}
}
\value{
function taking \code{lines} argument
}
\description{
Send log messages to a Telegram chat
}
\note{
This functionality depends on the \pkg{telegram} package.
}
\seealso{
Other log_appenders:
\code{\link{appender_async}()},
\code{\link{appender_console}()},
\code{\link{appender_file}()},
\code{\link{appender_kinesis}()},
\code{\link{appender_pushbullet}()},
\code{\link{appender_slack}()},
\code{\link{appender_stdout}()},
\code{\link{appender_syslog}()},
\code{\link{appender_tee}()}
}
\concept{log_appenders}
|