This commit is contained in:
Christian Rendina 2020-05-05 12:30:23 +02:00
parent 70e418eec2
commit aef4e6fda4

View File

@ -43,9 +43,6 @@ class Command:
def setName(self, name):
self.name = name
def getCommand(self):
return self.command
def setHeaderField(self, param):
self.headerField = param
@ -153,7 +150,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.getCommand(), 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.getName(), senderid, text).__dict__))
#if not r:
return self.errorText