client_telegram: Telegram client

Description Usage Arguments Details See Also Examples

View source: R/client_telegram.R

Description

Client extending a client_sendeR for the Telegram service. In addition to any fields in the client_sendeR this one contains telegram_token which is needed to send a message via the Telegram Bot API. For additional information on how to get required telegram_token see details.

Usage

1
client_telegram(telegram_token, ...)

Arguments

telegram_token

a bot token given by the BotFather.

...

named arguments with additional fields which will be passed to set_fields during client creation.

Details

To create your own telegram bot refer to https://core.telegram.org/bots#6-botfather.

See Also

is.client_telegram, send_message

Examples

1
2
3
4
client <- client_telegram("my_token")

# Variant with default parameters set
client2 <- client_telegram("my_token", message = "Default message template")

tmakowski/sendeR documentation built on June 27, 2020, 9 p.m.