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

@@ -33,15 +33,16 @@ class Button:
33
33
 
34
34
  self.absolute_text = absolute_text
35
35
 
36
- if not absolute_text:
36
+ if not absolute_text and detail:
37
37
  detail = detail.replace("\t", "")
38
38
 
39
39
  assert (
40
40
  len(title) <= TITLE_MAX_LENGTH
41
41
  ), f"O texto do botão deve ter no máximo {TITLE_MAX_LENGTH} caracteres."
42
- assert (
43
- len(detail) <= DETAIL_MAX_LENGTH
44
- ), f"A descrição do botão deve ter no máximo {DETAIL_MAX_LENGTH} caracteres."
42
+ if detail:
43
+ assert (
44
+ len(detail) <= DETAIL_MAX_LENGTH
45
+ ), f"A descrição do botão deve ter no máximo {DETAIL_MAX_LENGTH} caracteres."
45
46
 
46
47
  self.type = typeButton
47
48
  self.title = title
@@ -84,7 +85,7 @@ class Message:
84
85
  ) -> None:
85
86
  self.absolute_text = absolute_text
86
87
 
87
- if not absolute_text:
88
+ if not absolute_text and type == "message":
88
89
  detail = detail.replace("\t", "")
89
90
 
90
91
  self.type = type
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: chatgraph
3
- Version: 0.5.1
3
+ Version: 0.5.2
4
4
  Summary: A user-friendly chatbot library
5
5
  Home-page: https://github.com/irissonnlima/chatgraph
6
6
  License: MIT
@@ -12,11 +12,11 @@ chatgraph/pb/router_pb2.py,sha256=jw-Rg05NMwgOKrRsoubFFb82v_O80KgWY4tIqwUf2Aw,65
12
12
  chatgraph/pb/router_pb2_grpc.py,sha256=KxhVxCMVD9tpuX7CyXqIkzZ4P3zfXeVT92Bt_Hi7mrE,24109
13
13
  chatgraph/types/background_task.py,sha256=zQAFgkh_ogYaauRb3h59DKP9UnHaFl-DAAxGPhoTS5o,870
14
14
  chatgraph/types/end_types.py,sha256=--Ty2gM_y7J-yRAvZV26e4HMUpoguAMAhfOIS9-kQTk,1316
15
- chatgraph/types/message_types.py,sha256=NM0kjiajKnZd-Yr56Stehdpr18xc857FZW8TzmqgUmU,3369
15
+ chatgraph/types/message_types.py,sha256=__LOk09Xfvojum0xiq9n157_3QSSLNaDMc02iq8dGpk,3434
16
16
  chatgraph/types/request_types.py,sha256=BeUI2l9XZpBf5c8xyPvKI68WZ5u6n98cC8DmUfWKlQ0,8788
17
17
  chatgraph/types/route.py,sha256=FO5INy5UXgicuQ8FKEZKcPv6WS5YH10dPx2OaPu_0sE,2978
18
- chatgraph-0.5.1.dist-info/entry_points.txt,sha256=bO9_Q-PqE5vCNNo6ke_-3j2gHfKQMDGnKDTkNuCdBuA,48
19
- chatgraph-0.5.1.dist-info/LICENSE,sha256=rVJozpRzDlplOpvI8A1GvmfVS0ReYdZvMWc1j2jV0v8,1090
20
- chatgraph-0.5.1.dist-info/METADATA,sha256=vzVAaX_SlVGyA1rtOHv9C-F3Gl28sy2JoBhzatPCKJY,12866
21
- chatgraph-0.5.1.dist-info/WHEEL,sha256=sP946D7jFCHeNz5Iq4fL4Lu-PrWrFsgfLXbbkciIZwg,88
22
- chatgraph-0.5.1.dist-info/RECORD,,
18
+ chatgraph-0.5.2.dist-info/entry_points.txt,sha256=bO9_Q-PqE5vCNNo6ke_-3j2gHfKQMDGnKDTkNuCdBuA,48
19
+ chatgraph-0.5.2.dist-info/LICENSE,sha256=rVJozpRzDlplOpvI8A1GvmfVS0ReYdZvMWc1j2jV0v8,1090
20
+ chatgraph-0.5.2.dist-info/METADATA,sha256=ady68JbaOJ01HLuPIVreIJwEpT5C8nzH_0mByo_HBIM,12866
21
+ chatgraph-0.5.2.dist-info/WHEEL,sha256=sP946D7jFCHeNz5Iq4fL4Lu-PrWrFsgfLXbbkciIZwg,88
22
+ chatgraph-0.5.2.dist-info/RECORD,,