filtersLogic: Combining filters

filtersLogicR Documentation

Combining filters

Description

Creates a function which returns the corresponding logical operation between what f and g return.

Usage

## S3 method for class 'BaseFilter'
!f

## S3 method for class 'BaseFilter'
f & g

## S3 method for class 'BaseFilter'
f | g

Arguments

f, g

Arbitrary BaseFilter class functions.

Details

See BaseFilter and MessageFilters for further details.

Examples

not_command <- !MessageFilters$command
text_and_reply <- MessageFilters$text & MessageFilters$reply
audio_or_video <- MessageFilters$audio | MessageFilters$video

telegram.bot documentation built on Sept. 7, 2022, 5:07 p.m.