Call Status

Call Status#

class pywa.types.calls.CallStatus#

Represents a call status update.

  • This update arrives when during a business-initiated call, the user either accepts or rejects the call.

Variables:
  • id – The call ID.

  • metadata – The metadata of the call (to which phone number this call was made or received).

  • timestamp – The timestamp when this status update is sent (in UTC).

  • type (str) – The type of the status update (always β€œcall”).

  • status (CallStatusType) – The status of the call (either β€œRINGING”, β€œACCEPTED”, or β€œREJECTED”).

  • tracker (_CallbackDataT | None) – The tracker that the call is initiated with.

  • shared_data – Shared data between handlers.

class pywa.types.calls.CallStatusType#

Represents the type of call status.

Variables:
  • RINGING – Business initiated call is ringing the user.

  • ACCEPTED – Business initiated call is accepted by the user.

  • REJECTED – Business initiated call is rejected by the user.