From 6893e3b267381bd99a182014e6ef18dc836d3db2 Mon Sep 17 00:00:00 2001 From: David Lev Date: Fri, 25 Oct 2024 16:27:54 +0300 Subject: [PATCH] [version] new beta version! 2.0.0-beta.1 --- CHANGELOG.md | 12 ++++++++++++ pywa/__init__.py | 2 +- 2 files changed, 13 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index b9205af2..da1534ab 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -3,6 +3,18 @@ > NOTE: pywa follows the [semver](https://semver.org/) versioning standard. + +#### 2.0.0-beta.1 (2024-10-25) **Beta** + +- [listeners]: Listeners are a new way to handle incoming user updates (messages, callbacks, etc.). They are more flexible, faster, and easier to use than handlers. +- [filters]: Filters are now objects that can be combined using logical operators. They are more powerful and flexible than the previous filter system. +- [handlers]: Now you can register handlers with decorators without the need to use the `add_handler` method. +- [flows]: A new method `FlowCompletion.get_media(types.Image, key="img")` allows you to construct a media object and perform actions like `.download()` on it. +- [flows]: Decrypt media directly from FlowRequest using `.decrypt_media(key, index)`. +- [client]: The client can run without a token but won’t allow API operations (only webhook listening). +- [sent_message]: The `SentMessage` object returned by `send_message`, `send_image`, etc., contains the message ID and allows to act on the sent message with methods like `reply_x`, `wait_for_x` etc. +- [migration]: Make sure to read the migration guide before updating to this version! + #### 1.26.0 (2024-09-22) **Latest** - [flows] adding support of `RichText` diff --git a/pywa/__init__.py b/pywa/__init__.py index 64c55999..5948c955 100644 --- a/pywa/__init__.py +++ b/pywa/__init__.py @@ -9,6 +9,6 @@ from pywa.client import WhatsApp from pywa.utils import Version -__version__ = "1.26.0" +__version__ = "2.0.0-beta.1" __author__ = "David Lev" __license__ = "MIT"