Skip to content

2.3.0

Compare
Choose a tag to compare
@david-lev david-lev released this 30 Nov 23:14
· 31 commits to master since this release

What's Changed

Update with pip: pip3 install -U pywa

  • [client] allowing to specify the callback url scope
  • [client] expose methods to override callback url in waba and phone scopes
  • [flows] typing DataSource to accept Refs
from pywa import WhatsApp, utils
import fastapi

fastapi_app = fastapi.FastAPI()

wa = WhatsApp(
    phone_id=1234567890,
    token="EAAEZC6hUxkTI...",
    server=fastapi_app,
    callback_url="https://example.com",
    callback_url_scope=utils.CallbackURLScope.PHONE,  # override phone callback url
    verify_token="xyzxyz"
)

Full Changelog: 2.2.0...2.3.0