Uses of Interface
com.jtelegram.api.commands.filters.CommandFilter
-
Packages that use CommandFilter Package Description com.jtelegram.api.commands com.jtelegram.api.commands.filters -
-
Uses of CommandFilter in com.jtelegram.api.commands
Subinterfaces of CommandFilter in com.jtelegram.api.commands Modifier and Type Interface Description interface
CommandHandler
Methods in com.jtelegram.api.commands with parameters of type CommandFilter Modifier and Type Method Description void
CommandRegistry. registerCommand(CommandFilter filter, CommandFilter... filters)
void
CommandRegistry. registerCommand(java.lang.String command, CommandFilter filter, CommandFilter... filters)
-
Uses of CommandFilter in com.jtelegram.api.commands.filters
Classes in com.jtelegram.api.commands.filters that implement CommandFilter Modifier and Type Class Description class
AbstractCommandFilter
An abstract implementation ofCommandFilter
class
ChatTypeFilter
ACommandFilter
testing which type of chat the command was executed in.class
MentionFilter
ACommandFilter
testing if the bot was mentioned in the command.class
RegexFilter
ACommandFilter
testing if the command matches a certainregular expression pattern
.class
RootFilter
ACommandFilter
that merely groups filters.class
TextFilter
ACommandFilter
testing if the command is a given string, with optional case sensitivity.Constructors in com.jtelegram.api.commands.filters with parameters of type CommandFilter Constructor Description AbstractCommandFilter(CommandFilter... children)
Creates a CommandFilter with given children.
All subclasses of CommandFilter are expected to support multiple children filters (except CommandHandler, which is a special case).ChatTypeFilter(ChatType[] chatTypes, CommandFilter... children)
Creates a ChatTypeFilter with given children.ChatTypeFilter(ChatType chatType, CommandFilter... children)
Creates a ChatTypeFilter with given children.MentionFilter(CommandFilter... children)
Creates a MentionFilter with given children.RegexFilter(java.util.regex.Pattern pattern, CommandFilter... children)
Creates a RegexFilter with given children.RootFilter(CommandFilter filter, CommandFilter... children)
Creates a RootFilter with given children.TextFilter(java.lang.String command, boolean caseSensitive, CommandFilter... children)
Creates a TextFilter with given children.
-