1.11.0
What's Changed
Update with pip:
pip3 install -U pywa
- [callback] adding support for
Optional[x]
annotation inCallbackData
subclasses - [media] allowing to pass
pathlib.Path
as a media file path - [system] make all fields nullable in system update
from pywa import WhatsApp
from pathlib import Path
wa = WhatsApp(...)
wa.send_document(
to=972123456789,
document=Path('/home/david/Documents') / 'Resume.pdf',
filename='Resume.pdf',
caption='My Resume',
)
Full Changelog: 1.10.0...1.11.0