diff --git a/inline.py b/inline.py index 0fca492..59bdd75 100644 --- a/inline.py +++ b/inline.py @@ -99,6 +99,7 @@ class InlineBot: self.commands.append(Command("Yiff", "Yiff", "imageurl", "imageurl")) self.commands.append(Command("Lewd", "Say hi to the police", "imageurl", "imageurl")) self.commands.append(Command("Rasoio", "Dai facciamogli lo scherzo del rasoio!1!!", "genericurl", "htmldescription")) + self.cancerCommand = Command("Cancer", "Search cancer", "imageurl", "imageurl") def callRequest(self, command, senderid, text = ""): if not command: @@ -191,6 +192,7 @@ class InlineBot: for command in self.commands: results.append(self.makeResult(command, senderid)) else: + self.cancerCommand.setDesc("Search cancer about " + query) results.append(self.makeResult(self.cancerCommand, senderid, query)) context.bot.answer_inline_query(update.inline_query.id, results, 1, False)