Learn R Programming

telegram (version 0.7.1)

bot_token: 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 value returned

Examples

Run this code
if (FALSE)  bot_token('RBot') 

Run the code above in your browser using DataLab