Skip to content

Release 1.0.37

Choose a tag to compare

@bvdcode bvdcode released this 26 Oct 18:36
· 1 commit to main since this release
Refactor method matching logic in InlineQueryHandler

Refactored the method matching logic by replacing `IsValidMethod` with `TryMatchMethod` to improve flexibility and support placeholders in commands. Added helper methods `IsPlaceholder` and `PlaceholderName` for placeholder handling. Enhanced argument parsing with type validation and conversion using `TryConvertToType`. Improved ambiguity handling with detailed error messages for multiple matches. Introduced an exact match shortcut for methods without parameters. Cleaned up code for better readability and maintainability.