forked from dymik739/modular-bot-framework-for-telegram
7 lines
220 B
Python
7 lines
220 B
Python
command_storage = json.loads(open(self.path + "data.json").read())
|
|
|
|
received_command = self.MESSAGE.text[1:]
|
|
|
|
if received_command.lower() in command_storage:
|
|
self.RESPONSE = command_storage[received_command.lower()]
|