Releases: bvdcode/TelegramBot.NET
Releases · bvdcode/TelegramBot.NET
Release 1.0.28
Refactor methods and update package versions Replaced `SendTextMessageAsync` with `SendMessage` across multiple files. Changed `ParseMode` in `InlineResult.cs` to non-nullable with default `ParseMode.None`. Updated `Microsoft.EntityFrameworkCore.Sqlite` and `Microsoft.EntityFrameworkCore.Tools` to `9.0.0` in `TelegramBot.ConsoleTest.csproj`. Updated `Telegram.Bot` to `22.0.2` and other packages to `9.0.0` in `TelegramBot.csproj`. Added using directives in `BotApp.cs`. Replaced `GetMeAsync` with `GetMe` in `BotApp.cs`. Adjusted order of operations and refactored `HostApplicationLifetime` logic in `BotApp.cs`. Removed unused using directives.
Release 1.0.27
Refactor GetMethodInfo and add helper methods Note: this refactoring 100% AI generated and was not tested Refactored the GetMethodInfo method to improve readability and modularity by breaking down its logic into smaller, focused methods: IsValidUpdate, GetCommandParts, IsCommandValid, AddArguments, and FindMatchingMethods. The FindMatchingMethods method now returns a list of matching methods and throws an AmbiguousMatchException if multiple methods are found. The ObjectHelpers.TryConvertParameters call has been moved inside FindMatchingMethods, and the _args list is cleared and repopulated with converted arguments if a single matching method is found.
Release 1.0.26
Improve argument parsing in TextCommandHandler.cs Refactor the argument parsing logic in TextCommandHandler.cs to use a List<string> for collecting arguments and a string for building the current argument. This new implementation correctly handles quoted arguments by checking if a part starts and ends with a quote, or if it starts or ends with a quote and continues to build the argument until the closing quote is found. It also trims the quotes from the arguments and filters out any empty or whitespace-only arguments.
Release 1.0.25
Enhance text command processing in TextCommandHandler.cs - Add System.Linq namespace for LINQ functionalities. - Use StringSplitOptions.RemoveEmptyEntries in Split method. - Implement handling for quoted text within commands. - Filter out empty or whitespace parts after processing. - Add early return conditions for empty parts array.
Release 1.0.24
Merge branch 'main' of https://github.com/BigMakCode/TelegramBot.NET
Release 1.0.23
Merge branch 'main' of https://github.com/BigMakCode/TelegramBot.NET
Release 1.0.22
Refactor command registration and service configuration Refactored `Program.cs` to use new command registration method. Moved `RegisterCommands` from `BotBuilder` to `ServiceCollectionExtensions`. Updated `ServiceCollectionExtensions` to include `RegisterCommands`. Added `AddDbContext` and `UseAuthorizationHandler` to services.
Release 1.0.21
Add support for Russian bot command registration Previously, bot commands were registered only in English. This update adds a new code block to register the same set of commands with their descriptions in Russian, enabling bilingual support for bot commands.
Release 1.0.20
Add link to usage examples in README.md Added a hyperlink to the TelegramBot.ConsoleTest project in the README.md file. This link directs users to practical usage examples of the Telegram Bot API library, enhancing the documentation and aiding users in understanding how to implement the library.
Release 1.0.19
Merge branch 'main' of https://github.com/BigMakCode/TelegramBot.NET