Update README.md

This commit is contained in:
Temirkhan Myrzamadi 2020-02-12 16:19:38 +06:00 committed by GitHub
parent 687c5e4cd1
commit 5d331fc705
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -16,19 +16,18 @@
</div>
## Getting started
1. Be sure that you are up to date:
1. Create a new bot using [@botfather](https://t.me/botfather) to get a token in the format `123456789:somemanyletters`.
2. Be sure that you are up to date:
```bash
$ rustup update stable
```
2. To create a new bot, execute `cargo new` and put the following lines into your `Cargo.toml`:
3. To create a new bot, execute `cargo new` and put the following lines into your `Cargo.toml`:
```toml
[dependencies]
teloxide = "0.1.0"
```
3. Create a new bot using [@botfather](https://t.me/botfather), and after that you'll get a token in format `123456789:somemanyletters`.
## Writing your first bot
Open `main.rs` file, because we're gonna write a ping-pong-bot!