2.3.0
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 acceptRef
s
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