chatgraph 0.3.5__tar.gz → 0.3.7__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.
Potentially problematic release.
This version of chatgraph might be problematic. Click here for more details.
- {chatgraph-0.3.5 → chatgraph-0.3.7}/PKG-INFO +1 -1
- {chatgraph-0.3.5 → chatgraph-0.3.7}/chatgraph/bot/chatbot_model.py +4 -2
- {chatgraph-0.3.5 → chatgraph-0.3.7}/chatgraph/types/message_types.py +1 -1
- {chatgraph-0.3.5 → chatgraph-0.3.7}/chatgraph/types/request_types.py +2 -2
- {chatgraph-0.3.5 → chatgraph-0.3.7}/pyproject.toml +1 -1
- {chatgraph-0.3.5 → chatgraph-0.3.7}/LICENSE +0 -0
- {chatgraph-0.3.5 → chatgraph-0.3.7}/README.md +0 -0
- {chatgraph-0.3.5 → chatgraph-0.3.7}/chatgraph/__init__.py +0 -0
- {chatgraph-0.3.5 → chatgraph-0.3.7}/chatgraph/auth/credentials.py +0 -0
- {chatgraph-0.3.5 → chatgraph-0.3.7}/chatgraph/bot/chatbot_router.py +0 -0
- {chatgraph-0.3.5 → chatgraph-0.3.7}/chatgraph/cli/__init__.py +0 -0
- {chatgraph-0.3.5 → chatgraph-0.3.7}/chatgraph/error/chatbot_error.py +0 -0
- {chatgraph-0.3.5 → chatgraph-0.3.7}/chatgraph/error/route_error.py +0 -0
- {chatgraph-0.3.5 → chatgraph-0.3.7}/chatgraph/gRPC/gRPCCall.py +0 -0
- {chatgraph-0.3.5 → chatgraph-0.3.7}/chatgraph/messages/message_consumer.py +0 -0
- {chatgraph-0.3.5 → chatgraph-0.3.7}/chatgraph/pb/userstate.proto +0 -0
- {chatgraph-0.3.5 → chatgraph-0.3.7}/chatgraph/pb/userstate_pb2.py +0 -0
- {chatgraph-0.3.5 → chatgraph-0.3.7}/chatgraph/pb/userstate_pb2_grpc.py +0 -0
- {chatgraph-0.3.5 → chatgraph-0.3.7}/chatgraph/pb/voll.proto +0 -0
- {chatgraph-0.3.5 → chatgraph-0.3.7}/chatgraph/pb/voll_pb2.py +0 -0
- {chatgraph-0.3.5 → chatgraph-0.3.7}/chatgraph/pb/voll_pb2_grpc.py +0 -0
- {chatgraph-0.3.5 → chatgraph-0.3.7}/chatgraph/types/end_types.py +0 -0
- {chatgraph-0.3.5 → chatgraph-0.3.7}/chatgraph/types/route.py +0 -0
|
@@ -144,9 +144,11 @@ 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
|
+
else:
|
|
149
|
+
self.__process_func_response(userCall_response, userCall, route=route)
|
|
148
150
|
|
|
149
|
-
def __process_func_response(self, userCall_response, userCall: UserCall):
|
|
151
|
+
def __process_func_response(self, userCall_response, userCall: UserCall, route: str):
|
|
150
152
|
|
|
151
153
|
if isinstance(userCall_response, (str, float, int)):
|
|
152
154
|
userCall.send(Message(text=userCall_response))
|
|
@@ -130,7 +130,7 @@ class UserCall:
|
|
|
130
130
|
message.text,
|
|
131
131
|
message.title,
|
|
132
132
|
message.button_title,
|
|
133
|
-
message.
|
|
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
|
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|