filtersLogic: Combining filters

Description Usage Arguments Details Examples

Description

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

Usage

1
2
3
4
5
6
7
8
## 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

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

Example output



telegram.bot documentation built on Oct. 30, 2019, 9:40 a.m.