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

@@ -144,9 +144,9 @@ class ChatbotApp:
144
144
 
145
145
  if isinstance(userCall_response, (list, tuple)):
146
146
  for response in userCall_response:
147
- self.__process_func_response(response, userCall)
147
+ self.__process_func_response(response, userCall, route=route)
148
148
 
149
- def __process_func_response(self, userCall_response, userCall: UserCall):
149
+ def __process_func_response(self, userCall_response, userCall: UserCall, route: str):
150
150
 
151
151
  if isinstance(userCall_response, (str, float, int)):
152
152
  userCall.send(Message(text=userCall_response))
@@ -84,7 +84,7 @@ class ListElements:
84
84
  text:str,
85
85
  title: Optional[str] = None,
86
86
  button_title: Optional[str] = None,
87
- elements: list[dict] = None,
87
+ elements: dict = None,
88
88
  caption: Optional[str] = None,
89
89
  absolute_text: bool = False,
90
90
  ) -> None:
@@ -130,7 +130,7 @@ class UserCall:
130
130
  message.text,
131
131
  message.title,
132
132
  message.button_title,
133
- message.element_list,
133
+ message.elements,
134
134
  message.caption
135
135
  )
136
136
  else:
@@ -200,7 +200,7 @@ class UserCall:
200
200
  "button_title": button_title,
201
201
  "message_caption": caption,
202
202
  "message_title": title,
203
- "options": [{"title": k, "description": v} for k,v in element_list],
203
+ "options": [{"title": k, "description": v} for k,v in element_list.items()],
204
204
  }
205
205
  )
206
206
 
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: chatgraph
3
- Version: 0.3.5
3
+ Version: 0.3.6
4
4
  Summary: A user-friendly chatbot library
5
5
  Home-page: https://github.com/irissonnlima/chatgraph
6
6
  License: MIT
@@ -1,6 +1,6 @@
1
1
  chatgraph/__init__.py,sha256=lUMcFMSxKQeHVFq7CyZV2r_UOHAtGGpeXtac0RUd7po,718
2
2
  chatgraph/auth/credentials.py,sha256=xsMEpLQnc66novPjL6upocMcnUnvFJ7yxINzUenkxmc,2388
3
- chatgraph/bot/chatbot_model.py,sha256=yRjbjiQHkaN3IVf-gEu-NQHNxOMsj34imCpuZK3m84g,7201
3
+ chatgraph/bot/chatbot_model.py,sha256=s6InEQzed0TyyNctikI89ujJS1RgS-E_LVih-npc_8E,7226
4
4
  chatgraph/bot/chatbot_router.py,sha256=tl-4WP9wqUjCIwvtO9kJVUFjN2-mxNDUTRAFL9PXBgI,3028
5
5
  chatgraph/cli/__init__.py,sha256=tfgYhGoKy1nD4STN4xDh6J4VV55RICk7v1GZmzAg-bM,7413
6
6
  chatgraph/error/chatbot_error.py,sha256=4sEcW8vz0eQk2QDmDygucVM4caHliZW5iH7XJvmLBuk,1897
@@ -14,11 +14,11 @@ chatgraph/pb/voll.proto,sha256=fSjx24MT_fJQbo7EwO9BsuIWAa7IzXgJnioCSrdt3FM,2007
14
14
  chatgraph/pb/voll_pb2.py,sha256=IkopsIc8x-lS9j6WpL9Wk5MHl41FDa8cU0kmZRpKKKY,5291
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
- chatgraph/types/message_types.py,sha256=-GQAQi1iMz1ysZLAXJImIg34ObnSJnhz7zv6VBrlNuw,3364
18
- chatgraph/types/request_types.py,sha256=Huv9qcaR3ltmOEtrP7lAiGVYTIGjWnGEtSN1ag5IL9o,10303
17
+ chatgraph/types/message_types.py,sha256=VoCD8-Mr7ScTkzvdUTMXQDP4V6getReO8Ecump6cGQk,3358
18
+ chatgraph/types/request_types.py,sha256=Fq8LHFJH4A7MnH0MQmn4r57_EQaXpCYL05CW1ycK9bA,10307
19
19
  chatgraph/types/route.py,sha256=2fuHEPKUL_Vuv4g8pB6M7eJLouxXasqjesdju6_eumE,2757
20
- chatgraph-0.3.5.dist-info/entry_points.txt,sha256=bO9_Q-PqE5vCNNo6ke_-3j2gHfKQMDGnKDTkNuCdBuA,48
21
- chatgraph-0.3.5.dist-info/LICENSE,sha256=rVJozpRzDlplOpvI8A1GvmfVS0ReYdZvMWc1j2jV0v8,1090
22
- chatgraph-0.3.5.dist-info/METADATA,sha256=L_CDt9AKggDZhHZujk2AgvJxhPj5NRGhT1U02rbb0C4,12781
23
- chatgraph-0.3.5.dist-info/WHEEL,sha256=sP946D7jFCHeNz5Iq4fL4Lu-PrWrFsgfLXbbkciIZwg,88
24
- chatgraph-0.3.5.dist-info/RECORD,,
20
+ chatgraph-0.3.6.dist-info/entry_points.txt,sha256=bO9_Q-PqE5vCNNo6ke_-3j2gHfKQMDGnKDTkNuCdBuA,48
21
+ chatgraph-0.3.6.dist-info/LICENSE,sha256=rVJozpRzDlplOpvI8A1GvmfVS0ReYdZvMWc1j2jV0v8,1090
22
+ chatgraph-0.3.6.dist-info/METADATA,sha256=Oz-P2A2XTg63qi5RTXv8T-BTCy_0YnrFagTSrlhUHd0,12781
23
+ chatgraph-0.3.6.dist-info/WHEEL,sha256=sP946D7jFCHeNz5Iq4fL4Lu-PrWrFsgfLXbbkciIZwg,88
24
+ chatgraph-0.3.6.dist-info/RECORD,,