This commit is contained in:
Christian Rendina 2020-05-05 12:24:42 +02:00
parent c9aa5935c0
commit 70e418eec2

View File

@ -153,7 +153,7 @@ class InlineBot:
if not command:
return self.errorText
r = requests.post(self.config.getApiUrl(), headers = { "Content-Type" : "application/json", "User-Agent" : self.config.getUserAgent() }, data = json.JSONEncoder().encode(JSONRequest(self.config, command, senderid, text).__dict__))
r = requests.post(self.config.getApiUrl(), headers = { "Content-Type" : "application/json", "User-Agent" : self.config.getUserAgent() }, data = json.JSONEncoder().encode(JSONRequest(self.config, command.getCommand(), senderid, text).__dict__))
#if not r:
return self.errorText