Update the docs of dialogue/mod.rs

This commit is contained in:
Hirrolot 2022-02-05 00:26:40 +06:00
parent 539c53abde
commit aade493391

View file

@ -40,19 +40,14 @@
//! dialogue: MyDialogue,
//! (full_name,): (String,), // Available from `State::ReceiveAge`.
//! ) -> anyhow::Result<()> {
//! match msg.text() {
//! Some(number) => match number.parse::<u8>() {
//! Ok(age) => {
//! match msg.text().map(|text| text.parse::<u8>()) {
//! Some(Ok(age)) => {
//! bot.send_message(msg.chat.id, "What's your location?").await?;
//! dialogue.update(State::ReceiveLocation { full_name, age }).await?;
//! }
//! _ => {
//! bot.send_message(msg.chat.id, "Send me a number.").await?;
//! }
//! },
//! None => {
//! bot.send_message(msg.chat.id, "Send me a text message.").await?;
//! }
//! }
//!
//! Ok(())