Skip to content

1.10.0

Compare
Choose a tag to compare
@david-lev david-lev released this 29 Oct 16:49
· 549 commits to master since this release

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