Package io.micronaut.chatbots.core
Interface SlashCommandParser<I>
-
- Type Parameters:
I
- input type.
- All Known Implementing Classes:
TelegramSlashCommandParser
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
@FunctionalInterface public interface SlashCommandParser<I>
Attempts to parser a Slash command from a message. E.g. /help- Since:
- 1.0.0
- Author:
- Sergio del Amo
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description java.util.Optional<java.lang.String>
parse(I input)
-
-
-
Method Detail
-
parse
@NonNull java.util.Optional<java.lang.String> parse(@NonNull I input)
-
-