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.
Files changed (35) hide show
  1. {whatsapp_python-4.0.0.post1 → whatsapp_python-4.0.2}/PKG-INFO +1 -1
  2. {whatsapp_python-4.0.0.post1 → whatsapp_python-4.0.2}/whatsapp/constants.py +1 -1
  3. {whatsapp_python-4.0.0.post1 → whatsapp_python-4.0.2}/whatsapp/ext/_buttons.py +2 -2
  4. {whatsapp_python-4.0.0.post1 → whatsapp_python-4.0.2}/whatsapp/ext/_message.py +1 -1
  5. {whatsapp_python-4.0.0.post1 → whatsapp_python-4.0.2}/whatsapp/ext/_send_media.py +6 -6
  6. {whatsapp_python-4.0.0.post1 → whatsapp_python-4.0.2}/whatsapp/ext/_send_others.py +2 -2
  7. {whatsapp_python-4.0.0.post1 → whatsapp_python-4.0.2}/.github/FUNDING.yml +0 -0
  8. {whatsapp_python-4.0.0.post1 → whatsapp_python-4.0.2}/.github/ISSUE_TEMPLATE/bug_report.md +0 -0
  9. {whatsapp_python-4.0.0.post1 → whatsapp_python-4.0.2}/.github/ISSUE_TEMPLATE/custom.md +0 -0
  10. {whatsapp_python-4.0.0.post1 → whatsapp_python-4.0.2}/.github/ISSUE_TEMPLATE/feature_request.md +0 -0
  11. {whatsapp_python-4.0.0.post1 → whatsapp_python-4.0.2}/.github/dependabot.yml +0 -0
  12. {whatsapp_python-4.0.0.post1 → whatsapp_python-4.0.2}/.github/workflows/codeql.yml +0 -0
  13. {whatsapp_python-4.0.0.post1 → whatsapp_python-4.0.2}/.github/workflows/dependency-review.yml +0 -0
  14. {whatsapp_python-4.0.0.post1 → whatsapp_python-4.0.2}/.github/workflows/python-publish.yml +0 -0
  15. {whatsapp_python-4.0.0.post1 → whatsapp_python-4.0.2}/.gitignore +0 -0
  16. {whatsapp_python-4.0.0.post1 → whatsapp_python-4.0.2}/CODE_OF_CONDUCT.md +0 -0
  17. {whatsapp_python-4.0.0.post1 → whatsapp_python-4.0.2}/CONTRIBUTING.md +0 -0
  18. {whatsapp_python-4.0.0.post1 → whatsapp_python-4.0.2}/LICENSE +0 -0
  19. {whatsapp_python-4.0.0.post1 → whatsapp_python-4.0.2}/README.md +0 -0
  20. {whatsapp_python-4.0.0.post1 → whatsapp_python-4.0.2}/SECURITY.md +0 -0
  21. {whatsapp_python-4.0.0.post1 → whatsapp_python-4.0.2}/examples/reply_to_message_obj.py +0 -0
  22. {whatsapp_python-4.0.0.post1 → whatsapp_python-4.0.2}/examples/sending_audio.py +0 -0
  23. {whatsapp_python-4.0.0.post1 → whatsapp_python-4.0.2}/examples/sending_button.py +0 -0
  24. {whatsapp_python-4.0.0.post1 → whatsapp_python-4.0.2}/examples/sending_document.py +0 -0
  25. {whatsapp_python-4.0.0.post1 → whatsapp_python-4.0.2}/examples/sending_image.py +0 -0
  26. {whatsapp_python-4.0.0.post1 → whatsapp_python-4.0.2}/examples/sending_location.py +0 -0
  27. {whatsapp_python-4.0.0.post1 → whatsapp_python-4.0.2}/examples/sending_message.py +0 -0
  28. {whatsapp_python-4.0.0.post1 → whatsapp_python-4.0.2}/examples/sending_template_message.py +0 -0
  29. {whatsapp_python-4.0.0.post1 → whatsapp_python-4.0.2}/examples/sending_video.py +0 -0
  30. {whatsapp_python-4.0.0.post1 → whatsapp_python-4.0.2}/examples/standalone_hook.py +0 -0
  31. {whatsapp_python-4.0.0.post1 → whatsapp_python-4.0.2}/pyproject.toml +0 -0
  32. {whatsapp_python-4.0.0.post1 → whatsapp_python-4.0.2}/whatsapp/__init__.py +0 -0
  33. {whatsapp_python-4.0.0.post1 → whatsapp_python-4.0.2}/whatsapp/ext/_media.py +0 -0
  34. {whatsapp_python-4.0.0.post1 → whatsapp_python-4.0.2}/whatsapp/ext/_property.py +0 -0
  35. {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.0.post1
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
@@ -1,4 +1,4 @@
1
1
  # This file contains the constants used in the project.
2
2
  # The VERSION constant is used to store the version of the project - it's not only used in the __init__.py file, but also in the pyproject.toml file.
3
3
 
4
- VERSION = "4.0.0.post1"
4
+ VERSION = "4.0.2"
@@ -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.instance.LATEST}/{sender}/messages"
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.instance.LATEST}/{sender}/messages"
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.instance.LATEST}/{sender}/messages"
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.instance.LATEST}/{sender}/messages"
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.instance.LATEST}/{sender}/messages"
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.instance.LATEST}/{sender}/messages"
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.instance.LATEST}/{sender}/messages"
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.instance.LATEST}/{sender}/messages"
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.instance.LATEST}/{sender}/messages"
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.instance.LATEST}/{sender}/messages"
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.instance.LATEST}/{sender}/messages"
91
+ url = f"https://graph.facebook.com/{self.LATEST}/{sender}/messages"
92
92
 
93
93
  data = {
94
94
  "messaging_product": "whatsapp",