mirror of
https://github.com/teloxide/teloxide.git
synced 2025-03-14 11:44:04 +01:00
fix example code
This commit is contained in:
parent
6f13d38812
commit
7b9f7e8690
3 changed files with 6 additions and 3 deletions
|
@ -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;
|
||||
}
|
||||
```
|
||||
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue