User Marketing Preferences#
- class pywa.types.user_preferences.UserMarketingPreferences#
Represents user marketing preferences updates from WhatsApp.
- Variables:
id β The WhatsApp Business Account ID that the update was sent to.
metadata β The metadata of the message (to which phone number it was sent).
timestamp β The timestamp when the update was sent.
from_user β The user who made the marketing preference change.
value (MarketingPreference) β The marketing preference chosen by the user, either
stoporresume.detail (str) β A description of the marketing preference change (e.g. User requested to stop marketing messages).
category (UserPreferenceCategory) β The category of the user preference, which is always
marketing_messages.
- class pywa.types.user_preferences.MarketingPreference#
The marketing preference chosen by the user.
- Variables:
STOP β The user has requested to stop receiving marketing messages.
RESUME β The user has requested to resume receiving marketing messages.