whatsapp-python 3.0.3__py3-none-any.whl → 3.0.4__py3-none-any.whl

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/constants.py CHANGED
@@ -1,3 +1,3 @@
1
1
  # internal use only
2
2
 
3
- VERSION = "3.0.3"
3
+ VERSION = "3.0.4"
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: whatsapp-python
3
- Version: 3.0.3
3
+ Version: 3.0.4
4
4
  Summary: Open source Python wrapper for the WhatsApp Cloud API
5
5
  Project-URL: Homepage, https://github.com/filipporomani/whatsapp
6
6
  Project-URL: Bug Tracker, https://github.com/filipporomani/whatsapp/issues
@@ -42,20 +42,23 @@ Forked from [Neurotech-HQ/heyoo](https://github.com/Neurotech-HQ/heyoo)
42
42
  7. Sending template messages
43
43
  8. Parsing messages and media received
44
44
 
45
- ## App events
45
+ ## Docs
46
46
 
47
- Asynchronous app events are now available!
47
+ Docs are available in the [**wiki**](https://github.com/filipporomani/whatsapp/wiki) section on GitHub.
48
48
 
49
- The docs are available in the [wiki](https://github.com/filipporomani/whatsapp/wiki/App-events)
49
+ ## Why choose this library?
50
50
 
51
- Leave feedbacks/report issues freely on GitHub! I'll be glad to help you!
51
+ The main reason why I decided to fork the original library is that it uses an old version of the API and doesn't support many features.
52
52
 
53
+ In this library I added app events (to listen to incoming messages) and implemented an easier way to send/receive messages and media by creating the `Message`object.
54
+
55
+ I fixed some bugs and added some features, but the library still needs a lot of work to be done even if it's working and usable.
53
56
 
54
57
  ## Installation
55
58
 
56
59
  To install the library you can either use pip (latest release version):
57
60
 
58
- ``pip install -i https://test.pypi.org/simple/ whatsapp-python==3.0.2.post1`` (the production link doesn't actually work, I'm working on this issue - #16)
61
+ ``pip install whatsapp-python``
59
62
 
60
63
  or git (latest development version):
61
64
 
@@ -65,24 +68,27 @@ cd whatsapp
65
68
  python3 setup.py install
66
69
  ```
67
70
 
68
- ## Documentation
71
+ ## Obtaining the WhatsApp API credentials
72
+
73
+ To use the WhatsApp API you need to create a Facebook Business account and a WhatsApp Business account.
69
74
 
70
- The documentation for the library is available under the [**wiki**](https://github.com/filipporomani/whatsapp/wiki) section on GitHub.
75
+ **To create an account, I recomend to follow [this video](https://youtu.be/d6lNxP2gadA?si=_hbis7aP7MoKkck0)**
71
76
 
72
77
  ## Costs of the API
73
78
 
74
79
  While using third-party API providers of the WhatsApp API may have some monthly fees, using the WhatsApp API provided directly by Facebook is way cheaper, even if the billing docs are pretty hard to understand.
75
80
  The first 1000 chats created are free, then there is a pay-as-you-go fee that is paid for each conversation started.
76
81
 
77
- **IMPORTANT**: it is now mandatory (at least it was for me) to add a credit card to the whatsapp account to use the service. I eventually got billed for using a non-test number (~1,20€), so be carefull using the API!
82
+ **IMPORTANT**: it is now mandatory (at least it was for me) to add a credit card to the whatsapp account to use the service. I eventually got billed for using a non-test number (~1,20€), so be carefull using the API! I'm not responsible for any costs you may have using the API.
83
+
84
+ A suggestion I can give you is to use a test number (you can get one for free and use it for testing purposes only).
78
85
 
79
86
  All the prices are available in the [**WhatsApp API docs**](https://developers.facebook.com/docs/whatsapp/pricing)
80
87
 
81
88
  ## Switching from `Neurotech-HQ/heyoo`
89
+ *You can ignore this if it's your first time using the library.*
82
90
  Any version >1.1.2 is incompatible with the original `heyoo` library! Be careful updating! Read the docs first!
83
91
  Any version <=1.1.2 is fully compatible with the original `heyoo` library and doesn't include any breaking change..
84
- You can ignore this warning if it's your first time using the library.
85
-
86
92
 
87
93
  Switching from heyoo to whatsapp-python doesn't require any change for versions up to 1.1.2: just uninstall `heyoo`, install `whatsapp-python==1.1.2` and change the import name from `heyoo` to `whatsapp`.
88
94
  For version which are GREATER THEN 1.1.2, messages have became objects, so you need to change your code to use the new methods.
@@ -10,7 +10,7 @@ examples/sending_template_message.py,sha256=tXO8LPXdLq21m8RaLS4m0GArMFKi61N0mvbi
10
10
  examples/sending_video.py,sha256=LtlKf-GlMU36L_3WBf6XIcjQlaSK0GcIECTt_iRXgCg,423
11
11
  examples/standalone_hook.py,sha256=9MGmLB92IUg5lj1sTpWs-0k_85E8IfHOOpffUsr-Aq8,5330
12
12
  whatsapp/__init__.py,sha256=Oyqhs51ILr5-01ek982FYF-7_fVt-KLKVbyNnpB45cc,9540
13
- whatsapp/constants.py,sha256=LNsVL5MGLWd-bncbuFKe5Vb991Q5bGZcCS4Yi0bgxoU,40
13
+ whatsapp/constants.py,sha256=2mMLccNiBw11OSNRzgPDjKfVc249U8yLpNqh2KNRzJs,40
14
14
  whatsapp/ext/_buttons.py,sha256=GKgxDsansBf4dm4UtZWa-Y-P5ag0TCo36badqyS5fFU,2922
15
15
  whatsapp/ext/_media.py,sha256=S8kLfFbZQ1zDCNjdFr5jQYBnuo7tp9FMGsZOGb-h23o,4511
16
16
  whatsapp/ext/_message.py,sha256=_0E47iqKdP6YsFXSbSFHJ7TLzL5cSfUiHqbG17FN0Lg,3792
@@ -18,7 +18,7 @@ whatsapp/ext/_property.py,sha256=QS4FjWw21lyLuHnXGy7-2MCP-p0VoMw0gRpgu0OByO8,128
18
18
  whatsapp/ext/_send_media.py,sha256=aLdq4a0CyYa_ZNy8KOXEdX2rwA79RbCPp-thMjVxvh0,10036
19
19
  whatsapp/ext/_send_others.py,sha256=9Z2zV64Ygxu0LmN9Oy_oomwtgUbk3ZIFEF_3RWxkUDM,2934
20
20
  whatsapp/ext/_static.py,sha256=6T9CmHD3XBAH3e2T-w9je1mOfC1HwdBIMaRQjBdR_cQ,9513
21
- whatsapp_python-3.0.3.dist-info/METADATA,sha256=ahOiN0TFelD4GuGh-Z94WT5ujJGydSAAOezvicaS2JU,4700
22
- whatsapp_python-3.0.3.dist-info/WHEEL,sha256=9QBuHhg6FNW7lppboF2vKVbCGTVzsFykgRQjjlajrhA,87
23
- whatsapp_python-3.0.3.dist-info/licenses/LICENSE,sha256=HnVLQg1StPmnEJfysP2uUtgEGJ2NsZjAT_5y1WsV8RU,1092
24
- whatsapp_python-3.0.3.dist-info/RECORD,,
21
+ whatsapp_python-3.0.4.dist-info/METADATA,sha256=C0qVeKtRpxRmnQeYs_pw8YFT2u7w7CKjk4I5_6Fh-Mc,5202
22
+ whatsapp_python-3.0.4.dist-info/WHEEL,sha256=9QBuHhg6FNW7lppboF2vKVbCGTVzsFykgRQjjlajrhA,87
23
+ whatsapp_python-3.0.4.dist-info/licenses/LICENSE,sha256=HnVLQg1StPmnEJfysP2uUtgEGJ2NsZjAT_5y1WsV8RU,1092
24
+ whatsapp_python-3.0.4.dist-info/RECORD,,