From cbb2e22cd2049d9bca68cd0e1e91c646b5fcdb9b Mon Sep 17 00:00:00 2001 From: Ayrat Badykov Date: Tue, 3 Dec 2024 12:31:39 +0200 Subject: [PATCH] release 0.36.0 (#238) * release 0.36.0 * fix telegram version --- CHANGELOG.md | 4 ++++ Cargo.toml | 2 +- README.md | 12 ++++++------ 3 files changed, 11 insertions(+), 7 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index afff866..064d5b5 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,9 @@ # Changelog +## 0.35.0 (2024-12-03) + +* Bot API 8.0 - [#234](https://github.com/ayrat555/frankenstein/pull/234) + ## 0.35.0 (2024-11-27) * feat: try fit wasm partially - [#225](https://github.com/ayrat555/frankenstein/pull/225) diff --git a/Cargo.toml b/Cargo.toml index 808db99..78a816a 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "frankenstein" -version = "0.35.0" +version = "0.36.0" authors = ["Ayrat Badykov ", "EdJoPaTo ", "Pepe Márquez "] description = "Telegram bot API client for Rust" edition = "2021" diff --git a/README.md b/README.md index bd1b70f..d75eebb 100644 --- a/README.md +++ b/README.md @@ -6,7 +6,7 @@ Telegram bot API client for Rust. -It's a complete wrapper for Telegram bot API, and it's up-to-date with version 7.11 of the API. +It's a complete wrapper for Telegram bot API, and it's up-to-date with version 8.0 of the API. Frankenstein's data structures (rust structs and enums) are mapped one-to-one from Telegram bot API objects and method parameters. @@ -16,7 +16,7 @@ Run `cargo add frankenstein` or add the following to your `Cargo.toml`. ```toml [dependencies] -frankenstein = "0.35" +frankenstein = "0.36" ``` ## Features @@ -34,7 +34,7 @@ frankenstein = "0.35" To use the async client add the following line to your `Cargo.toml` file: ```toml -frankenstein = { version = "0.35", default-features = false, features = ["async-http-client"] } +frankenstein = { version = "0.36", default-features = false, features = ["async-http-client"] } ``` The async client partially supports wasm32 target, file uploads in the wasm32 target are not supported. @@ -42,7 +42,7 @@ The async client partially supports wasm32 target, file uploads in the wasm32 ta You can also disable all features. In this case the crate will ship only with Telegram types. ```toml -frankenstein = { version = "0.35", default-features = false } +frankenstein = { version = "0.36", default-features = false } ``` ## Usage @@ -190,7 +190,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.35.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.36.0/frankenstein/api_traits/telegram_api/trait.TelegramApi.html#provided-methods) You can check out real-world bots created using this library: @@ -206,7 +206,7 @@ The library uses `ureq` HTTP client by default, but it can be easily replaced wi `ureq` comes with a default feature (`impl`). So the feature should be disabled. ```toml -frankenstein = { version = "0.35", default-features = false, features = ["telegram-trait"] } +frankenstein = { version = "0.36", default-features = false, features = ["telegram-trait"] } ``` Then implement the `TelegramApi` trait for your HTTP client which requires two functions: