fix example code

This commit is contained in:
DCjanus 2020-08-02 12:11:09 +08:00
parent 6f13d38812
commit 7b9f7e8690
3 changed files with 6 additions and 3 deletions

View file

@ -162,7 +162,8 @@ async fn main() {
let bot = Bot::from_env();
teloxide::commands_repl(bot, panic!("Your bot's name here"), answer).await;
let bot_name: String = panic!("Your bot's name here");
teloxide::commands_repl(bot, bot_name, action).await;
}
```

View file

@ -139,5 +139,6 @@ async fn run() {
let bot = Bot::from_env();
teloxide::commands_repl(bot, panic!("Your bot's name here"), action).await;
let bot_name: String = panic!("Your bot's name here");
teloxide::commands_repl(bot, bot_name, action).await;
}

View file

@ -36,5 +36,6 @@ async fn run() {
let bot = Bot::from_env();
teloxide::commands_repl(bot, panic!("Your bot's name here"), answer).await;
let bot_name: String = panic!("Your bot's name here");
teloxide::commands_repl(bot, bot_name, answer).await;
}