From dc4aac92fa91b3f0cfecfacd5c896eadd17b23c7 Mon Sep 17 00:00:00 2001 From: Ivan Arar Date: Thu, 20 Aug 2026 13:23:34 +0200 Subject: [PATCH] hotfix/whatsapp-user-id-missing --- sendbee_api/contacts/models.py | 8 ++++++++ sendbee_api/contacts/query_params.py | 5 +++++ sendbee_api/conversations/query_params.py | 5 +++++ 3 files changed, 18 insertions(+) diff --git a/sendbee_api/contacts/models.py b/sendbee_api/contacts/models.py index aed6541..936d87d 100644 --- a/sendbee_api/contacts/models.py +++ b/sendbee_api/contacts/models.py @@ -43,6 +43,14 @@ class Contact(Model): _id = TextField(index='id', desc='UUID') _name = TextField(index='name', desc='Name') _phone = TextField(index='phone', desc='Phone number') + _whatsapp_user_id = TextField( + index='whatsapp_user_id', + desc='Business-scoped user ID (BSUID) of the ' \ + 'recipient, e.g. US.13491208655302741918. ' \ + 'Used instead of "to" when the phone number ' \ + 'is unknown. If both "to" and "recipient" ' \ + 'are provided, Meta gives precedence to "to".' + ) _created_at = DatetimeField( index='created_at', desc='Name', format='%Y-%m-%d %H:%M:%' ) diff --git a/sendbee_api/contacts/query_params.py b/sendbee_api/contacts/query_params.py index 8714090..d982154 100644 --- a/sendbee_api/contacts/query_params.py +++ b/sendbee_api/contacts/query_params.py @@ -17,6 +17,11 @@ class UpdateContacts(QueryParams): id = 'id', 'Contact ID' phone = 'phone', 'Contact phone number' + whatsapp_user_id = 'whatsapp_user_id', 'Business-scoped user ID (BSUID) of the ' \ + 'recipient, e.g. US.13491208655302741918. ' \ + 'Used instead of "to" when the phone number ' \ + 'is unknown. If both "to" and "recipient" ' \ + 'are provided, Meta gives precedence to "to".' tags = 'tags', 'Tag contact while subscribing it' name = 'name', 'Subscriber name' contact_fields = 'contact_fields', 'Contact data fields' diff --git a/sendbee_api/conversations/query_params.py b/sendbee_api/conversations/query_params.py index e5f85cd..d8f6c33 100644 --- a/sendbee_api/conversations/query_params.py +++ b/sendbee_api/conversations/query_params.py @@ -16,6 +16,11 @@ class SendTemplateMessage(QueryParams): tags = 'tags', 'Template message tags' button_tags = 'button_tags', 'Template button tags' phone = 'phone', 'Contact\'s phone number' + whatsapp_user_id = 'whatsapp_user_id', 'Business-scoped user ID (BSUID) of the ' \ + 'recipient, e.g. US.13491208655302741918. ' \ + 'Used instead of "to" when the phone number ' \ + 'is unknown. If both "to" and "recipient" ' \ + 'are provided, Meta gives precedence to "to".' language = 'language', 'Template message language' template_keyword = 'template_keyword', 'Template message keyword' prevent_bot_off = 'prevent_bot_off', 'Prevent turning-off chatbot'