whatsapp-chatbot-python 0.9.7__tar.gz → 0.9.8__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.7 → whatsapp_chatbot_python-0.9.8}/PKG-INFO +2 -2
  2. {whatsapp_chatbot_python-0.9.7 → whatsapp_chatbot_python-0.9.8}/setup.py +2 -2
  3. {whatsapp_chatbot_python-0.9.7 → whatsapp_chatbot_python-0.9.8}/whatsapp_chatbot_python/manager/handler.py +12 -8
  4. {whatsapp_chatbot_python-0.9.7 → whatsapp_chatbot_python-0.9.8}/whatsapp_chatbot_python.egg-info/PKG-INFO +2 -2
  5. whatsapp_chatbot_python-0.9.8/whatsapp_chatbot_python.egg-info/requires.txt +1 -0
  6. whatsapp_chatbot_python-0.9.7/whatsapp_chatbot_python.egg-info/requires.txt +0 -1
  7. {whatsapp_chatbot_python-0.9.7 → whatsapp_chatbot_python-0.9.8}/LICENSE +0 -0
  8. {whatsapp_chatbot_python-0.9.7 → whatsapp_chatbot_python-0.9.8}/README.md +0 -0
  9. {whatsapp_chatbot_python-0.9.7 → whatsapp_chatbot_python-0.9.8}/setup.cfg +0 -0
  10. {whatsapp_chatbot_python-0.9.7 → whatsapp_chatbot_python-0.9.8}/tests/test_manager.py +0 -0
  11. {whatsapp_chatbot_python-0.9.7 → whatsapp_chatbot_python-0.9.8}/whatsapp_chatbot_python/__init__.py +0 -0
  12. {whatsapp_chatbot_python-0.9.7 → whatsapp_chatbot_python-0.9.8}/whatsapp_chatbot_python/bot.py +0 -0
  13. {whatsapp_chatbot_python-0.9.7 → whatsapp_chatbot_python-0.9.8}/whatsapp_chatbot_python/filters.py +0 -0
  14. {whatsapp_chatbot_python-0.9.7 → whatsapp_chatbot_python-0.9.8}/whatsapp_chatbot_python/manager/__init__.py +0 -0
  15. {whatsapp_chatbot_python-0.9.7 → whatsapp_chatbot_python-0.9.8}/whatsapp_chatbot_python/manager/observer.py +0 -0
  16. {whatsapp_chatbot_python-0.9.7 → whatsapp_chatbot_python-0.9.8}/whatsapp_chatbot_python/manager/router.py +0 -0
  17. {whatsapp_chatbot_python-0.9.7 → whatsapp_chatbot_python-0.9.8}/whatsapp_chatbot_python/manager/state.py +0 -0
  18. {whatsapp_chatbot_python-0.9.7 → whatsapp_chatbot_python-0.9.8}/whatsapp_chatbot_python.egg-info/SOURCES.txt +0 -0
  19. {whatsapp_chatbot_python-0.9.7 → whatsapp_chatbot_python-0.9.8}/whatsapp_chatbot_python.egg-info/dependency_links.txt +0 -0
  20. {whatsapp_chatbot_python-0.9.7 → whatsapp_chatbot_python-0.9.8}/whatsapp_chatbot_python.egg-info/top_level.txt +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: whatsapp-chatbot-python
3
- Version: 0.9.7
3
+ Version: 0.9.8
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.49
33
+ Requires-Dist: whatsapp-api-client-python>=0.0.53
34
34
  Dynamic: author
35
35
  Dynamic: author-email
36
36
  Dynamic: classifier
@@ -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.7",
8
+ version="0.9.8",
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.49"],
46
+ install_requires=["whatsapp-api-client-python>=0.0.53"],
47
47
  python_requires=">=3.7"
48
48
  )
@@ -86,12 +86,13 @@ class Notification:
86
86
  message: str,
87
87
  quoted_message_id: Optional[str] = None,
88
88
  archive_chat: Optional[bool] = None,
89
- link_preview: Optional[bool] = None
89
+ link_preview: Optional[bool] = None,
90
+ typing_time: Optional[int] = None
90
91
  ) -> Optional[Response]:
91
92
  chat = self.get_chat()
92
93
  if chat:
93
94
  return self.api.sending.sendMessage(
94
- chat, message, quoted_message_id, archive_chat, link_preview
95
+ chat, message, quoted_message_id, archive_chat, link_preview, typing_time
95
96
  )
96
97
 
97
98
  def answer_buttons(
@@ -113,7 +114,7 @@ class Notification:
113
114
  body: str,
114
115
  buttons: List[Dict[str, Union[str, Dict[str, str]]]],
115
116
  header: Optional[str] = None,
116
- footer: Optional[str] = None,
117
+ footer: Optional[str] = None
117
118
  ) -> Optional[Response]:
118
119
  chat = self.get_chat()
119
120
  if chat:
@@ -126,7 +127,7 @@ class Notification:
126
127
  body: str,
127
128
  buttons: List[Dict[str, str]],
128
129
  header: Optional[str] = None,
129
- footer: Optional[str] = None,
130
+ footer: Optional[str] = None
130
131
  ) -> Optional[Response]:
131
132
  chat = self.get_chat()
132
133
  if chat:
@@ -139,12 +140,14 @@ class Notification:
139
140
  file: str,
140
141
  file_name: Optional[str] = None,
141
142
  caption: Optional[str] = None,
142
- quoted_message_id: Optional[str] = None
143
+ quoted_message_id: Optional[str] = None,
144
+ typing_time: Optional[int] = None,
145
+ typing_type: Optional[str] = None
143
146
  ) -> Optional[Response]:
144
147
  chat = self.get_chat()
145
148
  if chat:
146
149
  return self.api.sending.sendFileByUpload(
147
- chat, file, file_name, caption, quoted_message_id
150
+ chat, file, file_name, caption, quoted_message_id, typing_time, typing_type
148
151
  )
149
152
 
150
153
  def answer_with_poll(
@@ -152,12 +155,13 @@ class Notification:
152
155
  message: str,
153
156
  options: List[Dict[str, str]],
154
157
  multiple_answers: Optional[bool] = None,
155
- quoted_message_id: Optional[str] = None
158
+ quoted_message_id: Optional[str] = None,
159
+ typing_time: Optional[int] = None
156
160
  ) -> Optional[Response]:
157
161
  chat = self.get_chat()
158
162
  if chat:
159
163
  return self.api.sending.sendPoll(
160
- chat, message, options, multiple_answers, quoted_message_id
164
+ chat, message, options, multiple_answers, quoted_message_id, typing_time
161
165
  )
162
166
 
163
167
  HandlerType = Callable[[Notification], Any]
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: whatsapp-chatbot-python
3
- Version: 0.9.7
3
+ Version: 0.9.8
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.49
33
+ Requires-Dist: whatsapp-api-client-python>=0.0.53
34
34
  Dynamic: author
35
35
  Dynamic: author-email
36
36
  Dynamic: classifier
@@ -0,0 +1 @@
1
+ whatsapp-api-client-python>=0.0.53
@@ -1 +0,0 @@
1
- whatsapp-api-client-python>=0.0.49