Use Command::repl in README.md

Former-commit-id: db30e9efbe
This commit is contained in:
Hirrolot 2022-10-11 14:57:40 +06:00
parent f54db300ed
commit 5ed01a91d4

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)]