From 77cd706f615b948fb8848ee77312fbde1f46ee3f Mon Sep 17 00:00:00 2001 From: Tejas Nanaware Date: Thu, 1 Oct 2020 17:21:54 -0500 Subject: [PATCH] Fixed talk function 1. The talk function used url as "/atalk" instead of "/talk". 2. Added message in the url as earlier the message was not being passed. --- pb_py/main.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pb_py/main.py b/pb_py/main.py index 02a37a0..2c4ee46 100644 --- a/pb_py/main.py +++ b/pb_py/main.py @@ -136,11 +136,11 @@ def talk(self, input, usebotkey=False): return self.no_botname_error if not 'message' in input: return self.no_message_error - path = '/atalk' + path = '/talk' if (not usebotkey): path += '/' + self.app_id + '/' + self.botname url = "https://" + self.host + path - query = {"user_key": self.user_key} + query = {"user_key": self.user_key, "input": input['message']} if usebotkey: query['botkey'] = self.botkey else: