AKI.TelegramBot.ClientUtils provides ITelegramBotClient extensions for enhanced bot interactions with retries and markdown support.
$ dotnet add package AKI.TelegramBot.ClientUtilsAKI.TelegramBot.ClientUtils is a NuGet package providing a set of extension methods for the ITelegramBotClient interface from the Telegram.Bot library.
Add the NuGet package to your project and use the extension methods provided on your ITelegramBotClient objects.
// Send a typing action until a task is completed
await botClient.TypeWhileWait(chatId, task, cancellationToken);
// Send a markdown formatted message
await botClient.SendMarkDownMessages(chatId, text, cancellationToken);
// Stream messages from an asynchronous stream
await botClient.StreamMessages(chatId, enumerator, cancellationToken);
// Send multiple messages with optional reply markup and specific parse mode
await botClient.SendMessages(chatId, text, ParseMode.Markdown, cancellationToken);
Contributions are welcome. Please open an issue if you find a bug or have a feature request.
Licensed under the Apache License 2.0.