From 18920b546fb69d5fc03c0ca95be7374147831278 Mon Sep 17 00:00:00 2001 From: LasterAlex Date: Fri, 16 Aug 2024 22:02:04 +0300 Subject: [PATCH] Small fixes --- crates/teloxide/examples/deep_linking.rs | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/crates/teloxide/examples/deep_linking.rs b/crates/teloxide/examples/deep_linking.rs index 7bae00e7..d48b6a79 100644 --- a/crates/teloxide/examples/deep_linking.rs +++ b/crates/teloxide/examples/deep_linking.rs @@ -15,7 +15,7 @@ use teloxide::{ dispatching::dialogue::{self, InMemStorage}, macros::BotCommands, prelude::*, - types::Me, + types::{Me, ParseMode}, }; pub type MyDialogue = Dialogue>; @@ -33,7 +33,6 @@ pub enum State { #[derive(BotCommands, Clone, Debug)] #[command(rename_rule = "lowercase")] pub enum StartCommand { - #[command()] Start(String), } @@ -111,7 +110,7 @@ pub async fn send_message( // Trying to send a message to the user let sent_result = bot .send_message(id, format!("You have a new message!\n\n{text}")) - .parse_mode(teloxide::types::ParseMode::Html) + .parse_mode(ParseMode::Html) .await; // And if no error is returned, success!