bot_token {telegram}R Documentation

bot_token

Description

Obtain token from system variables (in Renviron) set according to package naming conventions, that is R_TELEGRAM_BOT_ where X is bot's name (first question answered to the botfather).

Usage

bot_token(x)

Arguments

x

character of length 1 with the name of the bot; if NULL a menu to choose between bot is displayed and the proper token returned

Examples

## Not run:  bot_token('RBot') 

[Package telegram version 0.6.0 Index]