fix tests

This commit is contained in:
2026-02-01 02:00:54 +03:00
parent f859451069
commit 31dc49a1bf
9 changed files with 324 additions and 72 deletions
+1
View File
@@ -119,6 +119,7 @@ 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