chatgraph 0.3.14__py3-none-any.whl → 0.3.16__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.

Potentially problematic release.


This version of chatgraph might be problematic. Click here for more details.

@@ -224,6 +224,10 @@ class UserCall:
224
224
  if len(element_list) > 20:
225
225
  raise ValueError("O número máximo de elementos é 20.")
226
226
 
227
+ if not text:
228
+ raise ValueError("O corpo da mensagem não pode ser vazio.")
229
+
230
+
227
231
  response = self.__wpp_server_client.send_list(
228
232
  {
229
233
  "hook_id": self.company_phone,
chatgraph/types/route.py CHANGED
@@ -24,13 +24,13 @@ class Route:
24
24
  self.separator = separator
25
25
 
26
26
  @property
27
- def previous(self)->str:
27
+ def previous(self)->'Route':
28
28
  """
29
29
  Retorna a rota anterior a atual do usuário
30
30
  """
31
31
  return self.get_previous()
32
32
 
33
- def get_previous(self) -> str:
33
+ def get_previous(self) -> 'Route':
34
34
  """
35
35
  Retorna o caminho anterior ao caminho atual.
36
36
 
@@ -44,7 +44,7 @@ class Route:
44
44
  raise RouteError('Não há caminho anterior ao start')
45
45
 
46
46
  previous_route = self.separator.join(self.current.split(self.separator)[:-1])
47
- return previous_route
47
+ return Route(previous_route, self.routes, self.separator)
48
48
 
49
49
  def get_next(self, next_part: str) -> 'Route':
50
50
  """
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: chatgraph
3
- Version: 0.3.14
3
+ Version: 0.3.16
4
4
  Summary: A user-friendly chatbot library
5
5
  Home-page: https://github.com/irissonnlima/chatgraph
6
6
  License: MIT
@@ -15,10 +15,10 @@ chatgraph/pb/voll_pb2.py,sha256=WLwE7F1pe_elcnwRnSFqVDcFihLZ3JBq4ScTHNCqWGA,5328
15
15
  chatgraph/pb/voll_pb2_grpc.py,sha256=U-_nXTAIEzo2GMYjHiphbSyTx3zyipsnKebFuZuoU1k,17685
16
16
  chatgraph/types/end_types.py,sha256=--Ty2gM_y7J-yRAvZV26e4HMUpoguAMAhfOIS9-kQTk,1316
17
17
  chatgraph/types/message_types.py,sha256=l488K4sVhTdOY5bbk47Y-qjfvfyn4h7bpmOFf2xGods,3334
18
- chatgraph/types/request_types.py,sha256=LOJPZF0GtSlvTw8pDqmAzQ5zR3znADJdDkItRA5E2Wg,11641
19
- chatgraph/types/route.py,sha256=2fuHEPKUL_Vuv4g8pB6M7eJLouxXasqjesdju6_eumE,2757
20
- chatgraph-0.3.14.dist-info/entry_points.txt,sha256=bO9_Q-PqE5vCNNo6ke_-3j2gHfKQMDGnKDTkNuCdBuA,48
21
- chatgraph-0.3.14.dist-info/LICENSE,sha256=rVJozpRzDlplOpvI8A1GvmfVS0ReYdZvMWc1j2jV0v8,1090
22
- chatgraph-0.3.14.dist-info/METADATA,sha256=COT96mOosUKy3nvw1M5KLAf7FVWmEJp5wwAt9Tlm8_I,12782
23
- chatgraph-0.3.14.dist-info/WHEEL,sha256=sP946D7jFCHeNz5Iq4fL4Lu-PrWrFsgfLXbbkciIZwg,88
24
- chatgraph-0.3.14.dist-info/RECORD,,
18
+ chatgraph/types/request_types.py,sha256=Rju__bOLI3AG-l5aYTNv_SwqH_-pu1tNiiHA9PujN_M,11761
19
+ chatgraph/types/route.py,sha256=sg0oAsfPlPciDsVa-GAr1AwwypH5EyUKqfo_IYMLOtU,2801
20
+ chatgraph-0.3.16.dist-info/entry_points.txt,sha256=bO9_Q-PqE5vCNNo6ke_-3j2gHfKQMDGnKDTkNuCdBuA,48
21
+ chatgraph-0.3.16.dist-info/LICENSE,sha256=rVJozpRzDlplOpvI8A1GvmfVS0ReYdZvMWc1j2jV0v8,1090
22
+ chatgraph-0.3.16.dist-info/METADATA,sha256=L9uQXpMFqD75L9xUHxTDxSCwZ15t0waU-rWY-g50Q08,12782
23
+ chatgraph-0.3.16.dist-info/WHEEL,sha256=sP946D7jFCHeNz5Iq4fL4Lu-PrWrFsgfLXbbkciIZwg,88
24
+ chatgraph-0.3.16.dist-info/RECORD,,