filtersLogic {telegram.bot} | R 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 |
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
[Package telegram.bot version 3.0.0 Index]