Skip to content

Commit

Permalink
[version] new beta version! 2.0.0-beta.1
Browse files Browse the repository at this point in the history
  • Loading branch information
david-lev committed Oct 25, 2024
1 parent 405192a commit 6893e3b
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 1 deletion.
12 changes: 12 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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`
Expand Down
2 changes: 1 addition & 1 deletion pywa/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -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"

0 comments on commit 6893e3b

Please sign in to comment.