mirror of
https://github.com/teloxide/teloxide.git
synced 2025-03-14 11:44:04 +01:00
Update README.md
This commit is contained in:
parent
12b6cf5955
commit
fbacf5a2ed
1 changed files with 1 additions and 5 deletions
|
@ -36,17 +36,13 @@ pretty_env_logger = "0.4.0"
|
|||
```
|
||||
|
||||
## The ping-pong bot
|
||||
This bot has a single handler, which answers "pong" on each incoming message:
|
||||
This bot has a single handler, which answers "pong" to each incoming message:
|
||||
|
||||
```rust
|
||||
use teloxide::prelude::*;
|
||||
|
||||
#[tokio::main]
|
||||
async fn main() {
|
||||
run().await;
|
||||
}
|
||||
|
||||
async fn run() {
|
||||
teloxide::enable_logging!();
|
||||
log::info!("Starting ping_pong_bot!");
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue