mirror of
https://github.com/teloxide/teloxide.git
synced 2024-12-22 14:35:36 +01:00
Update README.md
This commit is contained in:
parent
a1534b3a14
commit
c4ccf76455
1 changed files with 6 additions and 10 deletions
16
README.md
16
README.md
|
@ -18,20 +18,16 @@
|
|||
</div>
|
||||
|
||||
# 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:
|
||||
```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
|
||||
2. To create a new bot, execute `cargo new` and put the following lines into your `Cargo.toml`:
|
||||
```toml
|
||||
[dependencies]
|
||||
teloxide = "0.1.0"
|
||||
```
|
||||
in your Cargo.toml file.
|
||||
|
||||
### Writing first bot
|
||||
First, create bot with [@botfather](https://t.me/botfather). After creating, botfather give you
|
||||
|
|
Loading…
Reference in a new issue