1.10.0
What's Changed
Update with pip:
pip3 install -U pywa
- [template] adding support for
OtpType.ZERO_TAP
in new authentication template - [callback] adding support for nullable and optional fields in
CallbackData
- [tests] update
CallbackData
tests
import dataclasses
from pywa.types import CallbackData
@dataclasses.dataclass
class User(CallbackData):
id: str
name: str | None # nullable field
is_admin: bool = False # optional field
Full Changelog: 1.9.0...1.10.0