Learn R Programming

telegram.bot (version 1.0.0)

CommandHandler: CommandHandler

Description

Handler class to handle Telegram commands.

Usage

CommandHandler(command, callback, filters = NULL, pass_args = FALSE)

Arguments

command

The command or list of commands this handler should listen for.

callback

The callback function for this handler. See Handler for information about this function.

filters

(Optional). Only allow updates with these Filters. See Filters for a full list of all available filters.

pass_args

(Optional). Determines whether the handler should be passed args, received as a vector, split on spaces.

Format

An R6Class object.