Skip to content

Commit

Permalink
bump version
Browse files Browse the repository at this point in the history
  • Loading branch information
ayrat555 committed Dec 31, 2022
1 parent 1951762 commit b1405e2
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 6 deletions.
14 changes: 14 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,17 @@
## 0.22.0 (2022-12-31)

### [Bot API 6.4](https://core.telegram.org/bots/api#december-30-2022) - [#94](https://github.com/ayrat555/frankenstein/pull/94)
* Added the field `is_persistent` to the struct `ReplyKeyboardMarkup`, allowing to control when the keyboard is shown.
* Added the parameter `has_spoiler` to the methods `send_photo`, `send_video`, and `send_animation`.
* Added the field `has_spoiler` to the structs `InputMediaPhoto`, `InputMediaVideo`, and `InputMediaAnimation`.
* Added the field `has_media_spoiler` to the struct `Message`.
* The parameters `name` and `icon_custom_emoji_id` of the method `edit_forum_topic` are now optional. If they are omitted, the existing values are kept.
* Added the structs `ForumTopicEdited`, `GeneralForumTopicHidden`, `GeneralForumTopicUnhidden`, and `WriteAccessAllowed` and the fields `forum_topic_edited`, `general_forum_topic_hidden`, `general_forum_topic_unhidden`, and `write_access_allowed` to the struct `Message`.
* Added the methods `edit_general_forum_topic`, `close_general_forum_topic`, `reopen_general_forum_topic`, `hide_general_forum_topic`, `unhide_general_forum_topic` for managing the General topic in forums.
* Added the parameter `message_thread_id` to the method `send_chat_action` for sending chat actions to a specific message thread or a forum topic.
* Added the field `has_hidden_members` to the struct `Chat`. Note that the method `get_chat_member` is only guaranteed to work if the bot is an administrator in the chat.
* Added the field `has_aggressive_anti_spam_enabled` to the struct `Chat`.

## 0.21.0 (2022-10-06)

### [Bot API 6.3](https://core.telegram.org/bots/api#november-5-2022) - [#91](https://github.com/ayrat555/frankenstein/pull/91)
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.21.0"
version = "0.22.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.21"
frankenstein = "0.22"
```

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

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

You can also disable all features:

```toml
frankenstein = { version = "0.21", default-features = false }
frankenstein = { version = "0.22", 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.21.0/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.22.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.21", default-features = false, features = ["telegram-trait"] }
frankenstein = { version = "0.22", default-features = false, features = ["telegram-trait"] }
```

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

0 comments on commit b1405e2

Please sign in to comment.