diff --git a/mensa.py b/mensa.py index 77b047d..02f2a6f 100644 --- a/mensa.py +++ b/mensa.py @@ -72,10 +72,11 @@ MODES = { def linux_mensa(update: Update, context: CallbackContext): - mensa(update, context, ["linux"]) + context.args = ["linux"] + mensa(update, context) -def mensa(update: Update, context: CallbackContext, args: list[str]): +def mensa(update: Update, context: CallbackContext): if update.message.chat_id in DISABLED_GROUPS: return which = "zentral" @@ -84,7 +85,7 @@ def mensa(update: Update, context: CallbackContext, args: list[str]): auto_next_day = True today = datetime.datetime.now().date() - for arg in args: + for arg in context.args: arg = arg.lower() if arg in MENSA_NAME: which = arg