whatsapp-python 4.0.0.post1__tar.gz → 4.0.2__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {whatsapp_python-4.0.0.post1 → whatsapp_python-4.0.2}/PKG-INFO +1 -1
- {whatsapp_python-4.0.0.post1 → whatsapp_python-4.0.2}/whatsapp/constants.py +1 -1
- {whatsapp_python-4.0.0.post1 → whatsapp_python-4.0.2}/whatsapp/ext/_buttons.py +2 -2
- {whatsapp_python-4.0.0.post1 → whatsapp_python-4.0.2}/whatsapp/ext/_message.py +1 -1
- {whatsapp_python-4.0.0.post1 → whatsapp_python-4.0.2}/whatsapp/ext/_send_media.py +6 -6
- {whatsapp_python-4.0.0.post1 → whatsapp_python-4.0.2}/whatsapp/ext/_send_others.py +2 -2
- {whatsapp_python-4.0.0.post1 → whatsapp_python-4.0.2}/.github/FUNDING.yml +0 -0
- {whatsapp_python-4.0.0.post1 → whatsapp_python-4.0.2}/.github/ISSUE_TEMPLATE/bug_report.md +0 -0
- {whatsapp_python-4.0.0.post1 → whatsapp_python-4.0.2}/.github/ISSUE_TEMPLATE/custom.md +0 -0
- {whatsapp_python-4.0.0.post1 → whatsapp_python-4.0.2}/.github/ISSUE_TEMPLATE/feature_request.md +0 -0
- {whatsapp_python-4.0.0.post1 → whatsapp_python-4.0.2}/.github/dependabot.yml +0 -0
- {whatsapp_python-4.0.0.post1 → whatsapp_python-4.0.2}/.github/workflows/codeql.yml +0 -0
- {whatsapp_python-4.0.0.post1 → whatsapp_python-4.0.2}/.github/workflows/dependency-review.yml +0 -0
- {whatsapp_python-4.0.0.post1 → whatsapp_python-4.0.2}/.github/workflows/python-publish.yml +0 -0
- {whatsapp_python-4.0.0.post1 → whatsapp_python-4.0.2}/.gitignore +0 -0
- {whatsapp_python-4.0.0.post1 → whatsapp_python-4.0.2}/CODE_OF_CONDUCT.md +0 -0
- {whatsapp_python-4.0.0.post1 → whatsapp_python-4.0.2}/CONTRIBUTING.md +0 -0
- {whatsapp_python-4.0.0.post1 → whatsapp_python-4.0.2}/LICENSE +0 -0
- {whatsapp_python-4.0.0.post1 → whatsapp_python-4.0.2}/README.md +0 -0
- {whatsapp_python-4.0.0.post1 → whatsapp_python-4.0.2}/SECURITY.md +0 -0
- {whatsapp_python-4.0.0.post1 → whatsapp_python-4.0.2}/examples/reply_to_message_obj.py +0 -0
- {whatsapp_python-4.0.0.post1 → whatsapp_python-4.0.2}/examples/sending_audio.py +0 -0
- {whatsapp_python-4.0.0.post1 → whatsapp_python-4.0.2}/examples/sending_button.py +0 -0
- {whatsapp_python-4.0.0.post1 → whatsapp_python-4.0.2}/examples/sending_document.py +0 -0
- {whatsapp_python-4.0.0.post1 → whatsapp_python-4.0.2}/examples/sending_image.py +0 -0
- {whatsapp_python-4.0.0.post1 → whatsapp_python-4.0.2}/examples/sending_location.py +0 -0
- {whatsapp_python-4.0.0.post1 → whatsapp_python-4.0.2}/examples/sending_message.py +0 -0
- {whatsapp_python-4.0.0.post1 → whatsapp_python-4.0.2}/examples/sending_template_message.py +0 -0
- {whatsapp_python-4.0.0.post1 → whatsapp_python-4.0.2}/examples/sending_video.py +0 -0
- {whatsapp_python-4.0.0.post1 → whatsapp_python-4.0.2}/examples/standalone_hook.py +0 -0
- {whatsapp_python-4.0.0.post1 → whatsapp_python-4.0.2}/pyproject.toml +0 -0
- {whatsapp_python-4.0.0.post1 → whatsapp_python-4.0.2}/whatsapp/__init__.py +0 -0
- {whatsapp_python-4.0.0.post1 → whatsapp_python-4.0.2}/whatsapp/ext/_media.py +0 -0
- {whatsapp_python-4.0.0.post1 → whatsapp_python-4.0.2}/whatsapp/ext/_property.py +0 -0
- {whatsapp_python-4.0.0.post1 → whatsapp_python-4.0.2}/whatsapp/ext/_static.py +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.3
|
|
2
2
|
Name: whatsapp-python
|
|
3
|
-
Version: 4.0.
|
|
3
|
+
Version: 4.0.2
|
|
4
4
|
Summary: Open source Python wrapper for the WhatsApp Cloud API
|
|
5
5
|
Project-URL: Homepage, https://github.com/filipporomani/whatsapp-python
|
|
6
6
|
Project-URL: Docs, https://github.com/filipporomani/whatsapp-python/wiki
|
|
@@ -41,7 +41,7 @@ def send_button(self, button: Dict[Any, Any], recipient_id: str, sender=None) ->
|
|
|
41
41
|
if sender == None:
|
|
42
42
|
sender = self.phone_number_id
|
|
43
43
|
|
|
44
|
-
url = f"https://graph.facebook.com/{self.
|
|
44
|
+
url = f"https://graph.facebook.com/{self.LATEST}/{sender}/messages"
|
|
45
45
|
data = {
|
|
46
46
|
"messaging_product": "whatsapp",
|
|
47
47
|
"to": recipient_id,
|
|
@@ -81,7 +81,7 @@ def send_reply_button(
|
|
|
81
81
|
if sender == None:
|
|
82
82
|
sender = self.phone_number_id
|
|
83
83
|
|
|
84
|
-
url = f"https://graph.facebook.com/{self.
|
|
84
|
+
url = f"https://graph.facebook.com/{self.LATEST}/{sender}/messages"
|
|
85
85
|
if len(button["action"]["buttons"]) > 3:
|
|
86
86
|
raise ValueError("The maximum number of buttons is 3.")
|
|
87
87
|
|
|
@@ -49,7 +49,7 @@ def send_template(self, template: str, recipient_id: str, components: str = None
|
|
|
49
49
|
if sender == None:
|
|
50
50
|
sender = self.phone_number_id
|
|
51
51
|
|
|
52
|
-
url = f"https://graph.facebook.com/{self.
|
|
52
|
+
url = f"https://graph.facebook.com/{self.LATEST}/{sender}/messages"
|
|
53
53
|
data = {
|
|
54
54
|
"messaging_product": "whatsapp",
|
|
55
55
|
"to": recipient_id,
|
|
@@ -29,7 +29,7 @@ def send_location(self, lat: str, long: str, name: str, address: str, recipient_
|
|
|
29
29
|
if sender == None:
|
|
30
30
|
sender = self.phone_number_id
|
|
31
31
|
|
|
32
|
-
url = f"https://graph.facebook.com/{self.
|
|
32
|
+
url = f"https://graph.facebook.com/{self.LATEST}/{sender}/messages"
|
|
33
33
|
data = {
|
|
34
34
|
"messaging_product": "whatsapp",
|
|
35
35
|
"to": recipient_id,
|
|
@@ -91,7 +91,7 @@ def send_image(
|
|
|
91
91
|
if sender == None:
|
|
92
92
|
sender = self.phone_number_id
|
|
93
93
|
|
|
94
|
-
url = f"https://graph.facebook.com/{self.
|
|
94
|
+
url = f"https://graph.facebook.com/{self.LATEST}/{sender}/messages"
|
|
95
95
|
if link:
|
|
96
96
|
data = {
|
|
97
97
|
"messaging_product": "whatsapp",
|
|
@@ -149,7 +149,7 @@ def send_sticker(self, sticker: str, recipient_id: str, recipient_type: str = "i
|
|
|
149
149
|
if sender == None:
|
|
150
150
|
sender = self.phone_number_id
|
|
151
151
|
|
|
152
|
-
url = f"https://graph.facebook.com/{self.
|
|
152
|
+
url = f"https://graph.facebook.com/{self.LATEST}/{sender}/messages"
|
|
153
153
|
if link:
|
|
154
154
|
data = {
|
|
155
155
|
"messaging_product": "whatsapp",
|
|
@@ -203,7 +203,7 @@ def send_audio(self, audio: str, recipient_id: str, link: bool = True, sender =
|
|
|
203
203
|
if sender == None:
|
|
204
204
|
sender = self.phone_number_id
|
|
205
205
|
|
|
206
|
-
url = f"https://graph.facebook.com/{self.
|
|
206
|
+
url = f"https://graph.facebook.com/{self.LATEST}/{sender}/messages"
|
|
207
207
|
if link:
|
|
208
208
|
data = {
|
|
209
209
|
"messaging_product": "whatsapp",
|
|
@@ -258,7 +258,7 @@ def send_video(
|
|
|
258
258
|
if sender == None:
|
|
259
259
|
sender = self.phone_number_id
|
|
260
260
|
|
|
261
|
-
url = f"https://graph.facebook.com/{self.
|
|
261
|
+
url = f"https://graph.facebook.com/{self.LATEST}/{sender}/messages"
|
|
262
262
|
if link:
|
|
263
263
|
data = {
|
|
264
264
|
"messaging_product": "whatsapp",
|
|
@@ -312,7 +312,7 @@ def send_document(
|
|
|
312
312
|
if sender == None:
|
|
313
313
|
sender = self.phone_number_id
|
|
314
314
|
|
|
315
|
-
url = f"https://graph.facebook.com/{self.
|
|
315
|
+
url = f"https://graph.facebook.com/{self.LATEST}/{sender}/messages"
|
|
316
316
|
if link:
|
|
317
317
|
data = {
|
|
318
318
|
"messaging_product": "whatsapp",
|
|
@@ -27,7 +27,7 @@ def send_custom_json(self, data: dict, recipient_id: str = "", sender=None):
|
|
|
27
27
|
if sender == None:
|
|
28
28
|
sender = self.phone_number_id
|
|
29
29
|
|
|
30
|
-
url = f"https://graph.facebook.com/{self.
|
|
30
|
+
url = f"https://graph.facebook.com/{self.LATEST}/{sender}/messages"
|
|
31
31
|
|
|
32
32
|
if recipient_id:
|
|
33
33
|
if "to" in data.keys():
|
|
@@ -88,7 +88,7 @@ def send_contacts(
|
|
|
88
88
|
if sender == None:
|
|
89
89
|
sender = self.phone_number_id
|
|
90
90
|
|
|
91
|
-
url = f"https://graph.facebook.com/{self.
|
|
91
|
+
url = f"https://graph.facebook.com/{self.LATEST}/{sender}/messages"
|
|
92
92
|
|
|
93
93
|
data = {
|
|
94
94
|
"messaging_product": "whatsapp",
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{whatsapp_python-4.0.0.post1 → whatsapp_python-4.0.2}/.github/ISSUE_TEMPLATE/feature_request.md
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
{whatsapp_python-4.0.0.post1 → whatsapp_python-4.0.2}/.github/workflows/dependency-review.yml
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|