Use Command::repl in README.md

This commit is contained in:
Hirrolot 2022-10-11 14:57:40 +06:00
parent 739772929b
commit db30e9efbe

View file

@ -131,7 +131,7 @@ async fn main() {
let bot = Bot::from_env(); let bot = Bot::from_env();
teloxide::commands_repl(bot, answer, Command::ty()).await; Command::repl(bot, answer).await;
} }
#[derive(BotCommands, Clone)] #[derive(BotCommands, Clone)]