Update README.md

This commit is contained in:
Temirkhan Myrzamadi 2020-02-12 16:09:53 +06:00 committed by GitHub
parent a1534b3a14
commit c4ccf76455
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -18,20 +18,16 @@
</div> </div>
# Getting started # Getting started
1. Be sure that you are up to date:
```bash
$ rustup update stable
```
Library requires rustc version more than 1.40.0. You can check your rustc version with command: 2. To create a new bot, execute `cargo new` and put the following lines into your `Cargo.toml`:
```shell script
rustup -V
```
If your rustc version lower than 1.40.0, update it with:
```shell script
rustup update stable
```
Than create Cargo project and write
```toml ```toml
[dependencies]
teloxide = "0.1.0" teloxide = "0.1.0"
``` ```
in your Cargo.toml file.
### Writing first bot ### Writing first bot
First, create bot with [@botfather](https://t.me/botfather). After creating, botfather give you First, create bot with [@botfather](https://t.me/botfather). After creating, botfather give you