This commit is contained in:
2026-02-06 23:41:55 +03:00
parent fcff6f4263
commit f1034ff447
15 changed files with 280 additions and 99 deletions
-1
View File
@@ -119,7 +119,6 @@ class BaseApp(BehaviorHandlersSettersMixin):
def _most_similar_command(self, unknown_command: str) -> str | None:
all_commands = self.registered_routers.get_triggers()
print(all_commands)
matches = difflib.get_close_matches(unknown_command, all_commands, n=1)
return matches[0] if matches else None