Skip to content

Commit

Permalink
bump version
Browse files Browse the repository at this point in the history
  • Loading branch information
ayrat555 committed Aug 13, 2022
1 parent 8d7f439 commit c9d3be6
Show file tree
Hide file tree
Showing 3 changed files with 22 additions and 6 deletions.
16 changes: 16 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,19 @@
## 0.20.0 (2022-08-13)

* Change the offset field's type for getUpdates - [#86](https://github.com/ayrat555/frankenstein/pull/86)
* Change connect_timeout for async client - [#83](https://github.com/ayrat555/frankenstein/pull/83)

### [Bot API 6.2](https://core.telegram.org/bots/api#august-12-2022) - [#85](https://github.com/ayrat555/frankenstein/pull/85)

* Added the MessageEntity type “custom_emoji”.
* Added the field custom_emoji_id to the class MessageEntity for “custom_emoji” entities.
* Added the method getCustomEmojiStickers.
* Added the fields type and custom_emoji_id to the class Sticker.
* Added the field sticker_type to the class StickerSet, describing the type of stickers in the set.
* The field contains_masks has been removed from the documentation of the class StickerSet. The field is still returned in the object for backward compatibility, but new bots should use the field sticker_type instead.
* Added the parameter sticker_type to the method createNewStickerSet.
* The parameter contains_masks has been removed from the documentation of the method createNewStickerSet. The parameter will still work for backward compatibility, but new bots should use the parameter sticker_type instead.

## 0.19.2 (2022-07-20)

* Fix: Use client timeout of 500 seconds by @EdJoPaTo in [#82](https://github.com/ayrat555/frankenstein/pull/82)
Expand Down
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "frankenstein"
version = "0.19.2"
version = "0.20.0"
authors = ["Ayrat Badykov <[email protected]>"]
description = "Telegram bot API client for Rust"
edition = "2018"
Expand Down
10 changes: 5 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ Add this to your Cargo.toml

```toml
[dependencies]
frankenstein = "0.19"
frankenstein = "0.20"
```

## Features
Expand All @@ -35,13 +35,13 @@ frankenstein = "0.19"
To use the async client add the following line to your `Cargo.toml` file:

```toml
frankenstein = { version = "0.19", default-features = false, features = ["async-http-client"] }
frankenstein = { version = "0.20", default-features = false, features = ["async-http-client"] }
```

You can also disable all features:

```toml
frankenstein = { version = "0.19", default-features = false }
frankenstein = { version = "0.20", default-features = false }
```

In this case the crate will ship only with telegram types
Expand Down Expand Up @@ -195,7 +195,7 @@ AsyncApi::builder().api_url(api_url).client(client).build()

### Documentation

Frankenstein implements all telegram bot api methods. To see which parameters you should pass, check [docs.rs](https://docs.rs/frankenstein/0.19.2/frankenstein/api_traits/telegram_api/trait.TelegramApi.html#provided-methods)
Frankenstein implements all telegram bot api methods. To see which parameters you should pass, check [docs.rs](https://docs.rs/frankenstein/0.20.0/frankenstein/api_traits/telegram_api/trait.TelegramApi.html#provided-methods)

You can check out real-world bots created using this library:

Expand All @@ -213,7 +213,7 @@ The library uses `ureq` http client by default, but it can be easily replaced wi
1. `ureq` comes with a default feature (`impl`). So the feature should be disabled:

```toml
frankenstein = { version = "0.19", default-features = false, features = ["telegram-trait"] }
frankenstein = { version = "0.20", default-features = false, features = ["telegram-trait"] }
```

2. Implement `TelegramApi` trait which requires two functions:
Expand Down

0 comments on commit c9d3be6

Please sign in to comment.