From 70e418eec2274a3332708ffa60ec75c4167af569 Mon Sep 17 00:00:00 2001 From: Arves100 Date: Tue, 5 May 2020 12:24:42 +0200 Subject: [PATCH] w? --- inline.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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