Skip to content

Commit

Permalink
[version] New RC version: 1.13.0-rc.3
Browse files Browse the repository at this point in the history
  • Loading branch information
david-lev committed Dec 14, 2023
1 parent 63f08e0 commit 2b583f1
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 2 deletions.
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,11 @@ Changelog

NOTE: pywa follows the [semver](https://semver.org/) versioning standard.

### 1.13.0-rc.3 (2023-12-15)

- [errors] adding flows specific errors
- [flows] allow to `@on_flow_request` callbacks to return or raise `FlowResponseError` subclasses

### 1.13.0-rc.2 (2023-12-14)

- [base_update] adding `.raw` attr to hold the original update
Expand Down
5 changes: 4 additions & 1 deletion docs/source/content/flows/overview.rst
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
The ``Flows`` in pywa are still in beta and not fully tested.
Install the RC version of pywa to use it:

>>> pip3 install "pywa[cryptography]==1.13.0rc2"
>>> pip3 install "pywa[cryptography]==1.13.0rc3"

The ``cryptography`` extra is required for the default implementation of the decryption and encryption of the flow requests and responses.

Expand Down Expand Up @@ -815,6 +815,9 @@ We need to provide our business private key to decrypt the request and encrypt t
After that. we are registering a callback function to handle the request.
The callback function will receive the :class:`FlowRequest` object and should return :class:`FlowResponse` object.

A callback function can be return or raise :class:`FlowTokenNoLongerValid` or :class:`FlowRequestSignatureAuthenticationFailed`
to indicate that the flow token is no longer valid or the request signature authentication failed.

In our example, we returning our dynamic data to the ``DETAILS`` screen.

Of course, it can be more complex, if you have multiple screens, you can return data from them and then decide
Expand Down
2 changes: 1 addition & 1 deletion pywa/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,6 @@

from pywa.client import WhatsApp

__version__ = "1.13.0-rc.2"
__version__ = "1.13.0-rc.3"
__author__ = "David Lev"
__license__ = "MIT"

0 comments on commit 2b583f1

Please sign in to comment.