Call Permission Update#

class pywa.types.calls.CallPermissionUpdate#

Represents a call permission update.

  • This update arrives when a call permission request is sent to the user, and the user responds with an action.

Variables:
  • id – The message ID.

  • metadata – The metadata of the message (to which phone number this call permission request was sent).

  • type (MessageType) – The type of the message (always INTERACTIVE).

  • reply_to_message (ReplyToMessage) – The message that this call permission request is replying to.

  • from_user – The user who acted on the call permission request.

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

  • response (CallPermissionResponse) – The response to the call permission request (either ACCEPT or REJECT).

  • response_source (CallPermissionResponseSource) – The source of the call permission response (either USER_ACTION or AUTOMATIC).

  • expiration_timestamp (datetime.datetime | None) – The timestamp when the call permission request expires (if applicable).

class pywa.types.calls.CallPermissionResponse#

Represents the response to a call permission request.

Variables:
  • ACCEPT – The user accepted the call permission request.

  • REJECT – The user rejected the call permission request.

class pywa.types.calls.CallPermissionResponseSource#

Represents the source of the call permission response.

Variables:
  • USER_ACTION – User approved or rejected the permission

  • AUTOMATIC – An automatic permission approval due to the WhatsApp user initiating the call