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):
cmd_line = update.message.text.split(" ")[1:]
self._process(cmd_line, update)
if context.user_data:
if context.user_data is not None:
context.user_data["last_cmd_line"] = cmd_line
def tg_regenerate(self, update: Update, context: CallbackContext):