diff --git a/inline.py b/inline.py index 599b7fd..f0ad27e 100644 --- a/inline.py +++ b/inline.py @@ -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