Learn R Programming

telegram.bot (version 1.0.0)

Bot: Bot

Description

This object represents a Telegram Bot. It inherits from TGBot. Thus, it has implemented all the API methods from that class. It also features the get_updates method, which allows the use of long polling; and the set_webhook, delete_webhook and get_webhook_info methods, which allow to manage webhooks.

Usage

Bot(token, base_url = NULL, base_file_url = NULL)

Arguments

token

Bot's unique authentication.

base_url

Telegram Bot API service URL.

base_file_url

Telegram Bot API file URL.

Format

An R6Class object.

Details

To take full advantage of this library take a look at Updater.

Examples

Run this code
# NOT RUN {
bot <- Bot(token = 'TOKEN')
# }

Run the code above in your browser using DataLab