Class MentionFilter
- java.lang.Object
-
- com.jtelegram.api.commands.filters.AbstractCommandFilter
-
- com.jtelegram.api.commands.filters.MentionFilter
-
- All Implemented Interfaces:
CommandFilter
public class MentionFilter extends AbstractCommandFilter
ACommandFilter
testing if the bot was mentioned in the command.
-
-
Constructor Summary
Constructors Constructor Description MentionFilter(CommandFilter... children)
Creates a MentionFilter with given children.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected boolean
preTest(TextMessageEvent event, Command command)
-
Methods inherited from class com.jtelegram.api.commands.filters.AbstractCommandFilter
test
-
-
-
-
Constructor Detail
-
MentionFilter
public MentionFilter(CommandFilter... children)
Creates a MentionFilter with given children.- Parameters:
children
- The children filters, which will be checked in order if this filter tests to betrue
-
-
Method Detail
-
preTest
protected boolean preTest(TextMessageEvent event, Command command)
- Specified by:
preTest
in classAbstractCommandFilter
-
-