diff --git a/components/taghints.py b/components/taghints.py index 64bd1b3..5c91db2 100644 --- a/components/taghints.py +++ b/components/taghints.py @@ -302,7 +302,7 @@ # Sort the hints by key -_TAG_HINTS = dict(sorted(_TAG_HINTS.items())) +_TAG_HINTS_SORTED = dict(sorted(_TAG_HINTS.items())) # convert into proper objects TAG_HINTS: Dict[str, TagHint] = { key: TagHint( @@ -313,7 +313,7 @@ inline_keyboard=InlineKeyboardMarkup(value["buttons"]) if "buttons" in value else None, group_command=value.get("group_command", False), ) - for key, value in _TAG_HINTS.items() + for key, value in _TAG_HINTS_SORTED.items() } TAG_HINTS_PATTERN = re.compile( # case insensitive