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 interfaceCommandHandlerMethods in com.jtelegram.api.commands with parameters of type CommandFilter Modifier and Type Method Description voidCommandRegistry. registerCommand(CommandFilter filter, CommandFilter... filters)voidCommandRegistry. 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 classAbstractCommandFilterAn abstract implementation ofCommandFilterclassChatTypeFilterACommandFiltertesting which type of chat the command was executed in.classMentionFilterACommandFiltertesting if the bot was mentioned in the command.classRegexFilterACommandFiltertesting if the command matches a certainregular expression pattern.classRootFilterACommandFilterthat merely groups filters.classTextFilterACommandFiltertesting 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.
-