diff --git a/main.py b/main.py index 32041582083a583360ca3c48f149e5e69f9a0574..dea29ed6d5c01513504c63099b9814693a79a08c 100644 --- a/main.py +++ b/main.py @@ -58,6 +58,9 @@ LOCATION_TO_HEADER = { def cardapio(update: Update, context: CallbackContext) -> None: command = next(iter(update.message.parse_entities(types=["bot_command"]).values()))[1:] + if '@' in command: + command = command[:command.index('@')] + location = COMMAND_TO_LOCATION[command] days, update_time = get_menus_by_days(location)