Skip to content

4.3.0

Choose a tag to compare

@david-lev david-lev released this 12 Jul 20:51
6ebd161

What's Changed

Update with pip: pip3 install -U "pywa[server]"

  • [filters] make Filter class generic
  • [signups] adding support for creating listing and updating signups
  • [templates] add documentation and strict typing for ContactInfoRequestButton
  • [message] deprecate sender and recipient properties and update user identifier priority
  • [cli] move uvicorn import to runtime and improve error handling
  • [errors] add more error codes for throttling, sending, and migration, and fix template error code
from pywa import WhatsApp, types, filters

wa = WhatsApp(...)

@wa.on_callback_button(filters.text) # Type checker will catch this error
def on_callback(_: WhatsApp, button: types.CallbackButton):
    ...

Full Changelog: 4.2.0...4.3.0