examples/simple_commands.rs=> examples/command.rs

Former-commit-id: 5ecfd3d810
This commit is contained in:
Hirrolot 2022-04-27 00:54:37 +06:00
parent f818687cd0
commit bbb3ac6e2d
3 changed files with 4 additions and 4 deletions

View file

@ -121,7 +121,7 @@ Commands are strongly typed and defined declaratively, similar to how we define
[structopt]: https://docs.rs/structopt/0.3.9/structopt/
[serde-json]: https://github.com/serde-rs/json
([Full](examples/simple_commands.rs))
([Full](examples/command.rs))
```rust,no_run
use teloxide::{prelude::*, utils::command::BotCommands};
@ -131,7 +131,7 @@ use std::error::Error;
#[tokio::main]
async fn main() {
pretty_env_logger::init();
log::info!("Starting simple_commands_bot...");
log::info!("Starting command bot...");
let bot = Bot::from_env().auto_send();
@ -176,7 +176,7 @@ async fn answer(
<div align="center">
<kbd>
<img src=../../raw/master/media/simple-commands.gif />
<img src=../../raw/master/media/command.gif />
</kbd>
</div>

View file

@ -5,7 +5,7 @@ use std::error::Error;
#[tokio::main]
async fn main() {
pretty_env_logger::init();
log::info!("Starting simple_commands_bot...");
log::info!("Starting command bot...");
let bot = Bot::from_env().auto_send();