Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"

[project]
name = "sendbee_api"
version = "1.8.0"
version = "1.8.1"
description = "Python client SDK for Sendbee Public API"
readme = "README.md"
requires-python = ">=3.6"
Expand All @@ -27,7 +27,7 @@ classifiers = [
dependencies = [
"click>=7.0",
"requests>=2.20.0",
"dumpit>=0.5.0",
"dumpit>=0.6.1",
"aenum>=2.1.2",
"ujson>=5.7.0,<6",
"cryptography>=3.2",
Expand Down
8 changes: 8 additions & 0 deletions sendbee_api/conversations/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,14 @@ class ConversationContact(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".'
)


class ConversationLastMessage(Model):
Expand Down
5 changes: 5 additions & 0 deletions sendbee_api/conversations/query_params.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,11 @@ class SendMessage(QueryParams):
"""Parameters for sending message"""

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".'
text = 'text', 'Message text'
media_url = 'media_url', 'Media URL for media message'
prevent_bot_off = 'prevent_bot_off', 'Prevent turning-off chatbot'
Expand Down
Loading