Pywa

Latest version: v2.7.0

Safety actively analyzes 723158 Python packages for vulnerabilities to keep your Python projects secure.

Scan your dependencies

Page 3 of 11

2.0.2

- [server] rely on update hash instead of update id to avid duplicate updates

2.0.1

- [server] fix skip update in process (async)

2.0.0

BREAKING CHANGES!! READ THE [MIGRATION GUIDE](https://github.com/david-lev/pywa/blob/v2/MIGRATION.md)

- [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.
- [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.
- [filters]: Filters are now objects that can be combined using logical operators. They are more powerful and flexible than the previous filter system.
- [handlers] allow to register callbacks without WhatsApp instance
- [flows] allow pythonic conditionals in `If` component
- [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)`.
- [flows] rename `.data_key` and `.from_ref` to `.ref`
- [client]: The client can run without a token but won’t allow API operations (only webhook listening).
- [callback] allow to override callback data id
- [utils] bump graph-api version to `21.0`

1.26.0

- [flows] adding support of `RichText`
- [flows] adding support of `markdown` in `TextBody` and `TextCaption`
- [flows] adding `sensitive` attr to Screen, allowing to hide specific fields from the response summary
- [client] adding `reply_to_message` arg to `send_location`, `request_location`, `send_sticker`, and `send_audio`
- [message] adding `reply_location_request`

1.25.0

- [handlers] adding priority
- [client] adding QR methods (create update get and delete)
- [client] adding `get_flow_metrics` method
- [flows] adding to `DataSource` support for images/colors
- [flows] support `datetime` objs in `DatePicker`
- [flows] support `Screen` when using `.data_key_of(...)` and `.form_ref_of(...)`
- [flows] update flow json with indent and without ensuring ascii
- [flows] adding `health_status` to `FlowDetails`

1.24.0

- [server] validating `X-Hub-Signature-256` header
- [requirements] removing `requests`
- [server] default callback url registration delay to 3 sec

Page 3 of 11

© 2025 Safety CLI Cybersecurity Inc. All Rights Reserved.