fix persistence (again)

This commit is contained in:
Tomáš Mládek 2021-09-19 12:21:20 +02:00
parent 6091c19c8b
commit d443fc6d7e

View file

@ -43,7 +43,7 @@ class KollagenBot:
def tg_generate(self, update: Update, context: CallbackContext): def tg_generate(self, update: Update, context: CallbackContext):
cmd_line = update.message.text.split(" ")[1:] cmd_line = update.message.text.split(" ")[1:]
self._process(cmd_line, update) self._process(cmd_line, update)
if context.user_data: if context.user_data is not None:
context.user_data["last_cmd_line"] = cmd_line context.user_data["last_cmd_line"] = cmd_line
def tg_regenerate(self, update: Update, context: CallbackContext): def tg_regenerate(self, update: Update, context: CallbackContext):