[−][src]Module matrix_bot_api::handlers
Re-exports
pub use self::stateless_handler::StatelessHandler; |
Modules
stateless_handler |
Structs
Message |
Enums
HandleResult | What to do after finished handling a message |
Traits
MessageHandler | Any struct that implements this trait can be passed to a MatrixBot.
The bot will call handle_message() on each arriving text-message
The result HandleResult defines if |
Functions
extract_command | Convenience-function to split the incoming message by whitespace and extract the given prefix from the first word. Returns None, if the message does not start with the given prefix |