diff --git a/pywa/types/flows.py b/pywa/types/flows.py index 94955d7..7a1ebe6 100644 --- a/pywa/types/flows.py +++ b/pywa/types/flows.py @@ -202,7 +202,7 @@ class FlowRequestActionType(utils.StrEnum): INIT: if the request is triggered when opening the flow (The :class:`FlowButton` was sent with flow_action_type set to ``FlowActionType.DATA_EXCHANGE``) BACK: if the request is triggered when pressing back (The screen has ``refresh_on_back`` set to ``True``) DATA_EXCHANGE: if the request is triggered when submitting the screen (And the :class:`Action` name is ``FlowActionType.DATA_EXCHANGE``) - PING: if the request is triggered by a health check (Ignore this requests by leaving ``handle_health_check`` to ``True``) + PING: Deprecated. This request is handled automatically by pywa and not passed to the callback. NAVIGATE: if the :class:`FlowButton` sent with ``FlowActionType.NAVIGATE`` and the screen is not in the routing model (the request will contain an error) """ @@ -317,10 +317,13 @@ def has_error(self) -> bool: @property def is_health_check(self) -> bool: """ - Check if the request is a health check. - When True, if flow endpoint register with ``handle_health_check=True``, - pywa will not call the callback and will return a health check response. + Deprecated. Health check is handled automatically by pywa. """ + warnings.warn( + "This property is deprecated because the health check is handled automatically by pywa.", + DeprecationWarning, + stacklevel=2, + ) return self.action == FlowRequestActionType.PING def decrypt_media(