mobot/
action.rs

1/// `Action` represents an action to take after handling a chat event.
2#[derive(Debug, Clone)]
3pub enum Action {
4    /// Continue to the next handler.
5    Next,
6
7    /// Stop handling events.
8    Done,
9
10    /// Reply to the message with the given text and stop handling events. This
11    /// is equivalent to `e.send_text(...)` followed by `Ok(Action::Done)`.
12    ReplyText(String),
13
14    /// Same as ReplyText, but with MarkdownV2 formatting. Make
15    /// sure to escape any user input!
16    ReplyMarkdown(String),
17
18    /// Reply to the message with the given sticker and stop running handlers.
19    ReplySticker(String),
20}