whatsapp-chatbot-python 0.9.0__tar.gz → 0.9.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 (20) hide show
  1. {whatsapp-chatbot-python-0.9.0 → whatsapp_chatbot_python-0.9.2}/PKG-INFO +18 -3
  2. {whatsapp-chatbot-python-0.9.0 → whatsapp_chatbot_python-0.9.2}/README.md +16 -1
  3. {whatsapp-chatbot-python-0.9.0 → whatsapp_chatbot_python-0.9.2}/setup.py +2 -2
  4. {whatsapp-chatbot-python-0.9.0 → whatsapp_chatbot_python-0.9.2}/whatsapp_chatbot_python.egg-info/PKG-INFO +18 -3
  5. whatsapp_chatbot_python-0.9.2/whatsapp_chatbot_python.egg-info/requires.txt +1 -0
  6. whatsapp-chatbot-python-0.9.0/whatsapp_chatbot_python.egg-info/requires.txt +0 -1
  7. {whatsapp-chatbot-python-0.9.0 → whatsapp_chatbot_python-0.9.2}/LICENSE +0 -0
  8. {whatsapp-chatbot-python-0.9.0 → whatsapp_chatbot_python-0.9.2}/setup.cfg +0 -0
  9. {whatsapp-chatbot-python-0.9.0 → whatsapp_chatbot_python-0.9.2}/tests/test_manager.py +0 -0
  10. {whatsapp-chatbot-python-0.9.0 → whatsapp_chatbot_python-0.9.2}/whatsapp_chatbot_python/__init__.py +0 -0
  11. {whatsapp-chatbot-python-0.9.0 → whatsapp_chatbot_python-0.9.2}/whatsapp_chatbot_python/bot.py +0 -0
  12. {whatsapp-chatbot-python-0.9.0 → whatsapp_chatbot_python-0.9.2}/whatsapp_chatbot_python/filters.py +0 -0
  13. {whatsapp-chatbot-python-0.9.0 → whatsapp_chatbot_python-0.9.2}/whatsapp_chatbot_python/manager/__init__.py +0 -0
  14. {whatsapp-chatbot-python-0.9.0 → whatsapp_chatbot_python-0.9.2}/whatsapp_chatbot_python/manager/handler.py +0 -0
  15. {whatsapp-chatbot-python-0.9.0 → whatsapp_chatbot_python-0.9.2}/whatsapp_chatbot_python/manager/observer.py +0 -0
  16. {whatsapp-chatbot-python-0.9.0 → whatsapp_chatbot_python-0.9.2}/whatsapp_chatbot_python/manager/router.py +0 -0
  17. {whatsapp-chatbot-python-0.9.0 → whatsapp_chatbot_python-0.9.2}/whatsapp_chatbot_python/manager/state.py +0 -0
  18. {whatsapp-chatbot-python-0.9.0 → whatsapp_chatbot_python-0.9.2}/whatsapp_chatbot_python.egg-info/SOURCES.txt +0 -0
  19. {whatsapp-chatbot-python-0.9.0 → whatsapp_chatbot_python-0.9.2}/whatsapp_chatbot_python.egg-info/dependency_links.txt +0 -0
  20. {whatsapp-chatbot-python-0.9.0 → whatsapp_chatbot_python-0.9.2}/whatsapp_chatbot_python.egg-info/top_level.txt +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: whatsapp-chatbot-python
3
- Version: 0.9.0
3
+ Version: 0.9.2
4
4
  Summary: This library helps you easily create a Python chatbot with WhatsApp API.
5
5
  Home-page: https://github.com/green-api/whatsapp-chatbot-python
6
6
  Author: GREEN API
@@ -30,7 +30,7 @@ Classifier: Topic :: Software Development :: Libraries :: Application Frameworks
30
30
  Requires-Python: >=3.7
31
31
  Description-Content-Type: text/markdown
32
32
  License-File: LICENSE
33
- Requires-Dist: whatsapp-api-client-python==0.0.44
33
+ Requires-Dist: whatsapp-api-client-python==0.0.46
34
34
 
35
35
  # whatsapp-chatbot-python
36
36
 
@@ -70,6 +70,19 @@ python -m pip install whatsapp-chatbot-python
70
70
  from whatsapp_chatbot_python import GreenAPIBot, Notification
71
71
  ```
72
72
 
73
+ ## Setup
74
+
75
+ Before launching the bot, you should enable incoming notifications in instance settings by using [SetSettings method](https://green-api.com/en/docs/api/account/SetSettings/).
76
+
77
+
78
+ ```json
79
+ {
80
+ "incomingWebhook": "yes",
81
+ "outgoingMessageWebhook": "yes",
82
+ "outgoingAPIMessageWebhook": "yes"
83
+ }
84
+ ```
85
+
73
86
  ## Examples
74
87
 
75
88
  ### How to initialize an object
@@ -238,7 +251,9 @@ def message_handler(notification: Notification) -> None:
238
251
  bot.run_forever()
239
252
  ```
240
253
 
241
- ### How to handle buttons
254
+ ### How to handle buttons (deprecated)
255
+
256
+ The method is temporarily not working. When the method is called, a 403 error will be returned.
242
257
 
243
258
  To be notified when a button is pressed, you must use the `bot.router.buttons` object.
244
259
 
@@ -36,6 +36,19 @@ python -m pip install whatsapp-chatbot-python
36
36
  from whatsapp_chatbot_python import GreenAPIBot, Notification
37
37
  ```
38
38
 
39
+ ## Setup
40
+
41
+ Before launching the bot, you should enable incoming notifications in instance settings by using [SetSettings method](https://green-api.com/en/docs/api/account/SetSettings/).
42
+
43
+
44
+ ```json
45
+ {
46
+ "incomingWebhook": "yes",
47
+ "outgoingMessageWebhook": "yes",
48
+ "outgoingAPIMessageWebhook": "yes"
49
+ }
50
+ ```
51
+
39
52
  ## Examples
40
53
 
41
54
  ### How to initialize an object
@@ -204,7 +217,9 @@ def message_handler(notification: Notification) -> None:
204
217
  bot.run_forever()
205
218
  ```
206
219
 
207
- ### How to handle buttons
220
+ ### How to handle buttons (deprecated)
221
+
222
+ The method is temporarily not working. When the method is called, a 403 error will be returned.
208
223
 
209
224
  To be notified when a button is pressed, you must use the `bot.router.buttons` object.
210
225
 
@@ -5,7 +5,7 @@ with open("README.md", encoding="UTF-8") as file:
5
5
 
6
6
  setup(
7
7
  name="whatsapp-chatbot-python",
8
- version="0.9.0",
8
+ version="0.9.2",
9
9
  description=(
10
10
  "This library helps you easily create"
11
11
  " a Python chatbot with WhatsApp API."
@@ -43,6 +43,6 @@ setup(
43
43
  "Creative Commons Attribution-NoDerivatives 4.0 International"
44
44
  " (CC BY-ND 4.0)"
45
45
  ),
46
- install_requires=["whatsapp-api-client-python==0.0.44"],
46
+ install_requires=["whatsapp-api-client-python==0.0.46"],
47
47
  python_requires=">=3.7"
48
48
  )
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: whatsapp-chatbot-python
3
- Version: 0.9.0
3
+ Version: 0.9.2
4
4
  Summary: This library helps you easily create a Python chatbot with WhatsApp API.
5
5
  Home-page: https://github.com/green-api/whatsapp-chatbot-python
6
6
  Author: GREEN API
@@ -30,7 +30,7 @@ Classifier: Topic :: Software Development :: Libraries :: Application Frameworks
30
30
  Requires-Python: >=3.7
31
31
  Description-Content-Type: text/markdown
32
32
  License-File: LICENSE
33
- Requires-Dist: whatsapp-api-client-python==0.0.44
33
+ Requires-Dist: whatsapp-api-client-python==0.0.46
34
34
 
35
35
  # whatsapp-chatbot-python
36
36
 
@@ -70,6 +70,19 @@ python -m pip install whatsapp-chatbot-python
70
70
  from whatsapp_chatbot_python import GreenAPIBot, Notification
71
71
  ```
72
72
 
73
+ ## Setup
74
+
75
+ Before launching the bot, you should enable incoming notifications in instance settings by using [SetSettings method](https://green-api.com/en/docs/api/account/SetSettings/).
76
+
77
+
78
+ ```json
79
+ {
80
+ "incomingWebhook": "yes",
81
+ "outgoingMessageWebhook": "yes",
82
+ "outgoingAPIMessageWebhook": "yes"
83
+ }
84
+ ```
85
+
73
86
  ## Examples
74
87
 
75
88
  ### How to initialize an object
@@ -238,7 +251,9 @@ def message_handler(notification: Notification) -> None:
238
251
  bot.run_forever()
239
252
  ```
240
253
 
241
- ### How to handle buttons
254
+ ### How to handle buttons (deprecated)
255
+
256
+ The method is temporarily not working. When the method is called, a 403 error will be returned.
242
257
 
243
258
  To be notified when a button is pressed, you must use the `bot.router.buttons` object.
244
259
 
@@ -0,0 +1 @@
1
+ whatsapp-api-client-python==0.0.46
@@ -1 +0,0 @@
1
- whatsapp-api-client-python==0.0.44