MessageFilters {telegram.bot}R Documentation

Filter message updates

Description

Predefined filters for use as the filter argument of class MessageHandler.

Usage

MessageFilters

Format

A list with filtering functions.

Details

See BaseFilter and filtersLogic for advanced filters.

Functions

Examples

## Not run: 
# Use to filter all video messages
video_handler <- MessageHandler(callback_method, MessageFilters$video)

# To filter all contacts, etc.
contact_handler <- MessageHandler(callback_method, MessageFilters$contact)

## End(Not run)

[Package telegram.bot version 3.0.0 Index]