using Telegram.Bot; using Telegram.Bot.Polling; using Telegrator.Polling; namespace Telegrator.MadiatorCore { /// /// Interface for handling exceptions that occur during update routing operations. /// Provides a centralized way to handle and log errors that occur during bot operation. /// public interface IRouterExceptionHandler { /// /// Handles exceptions that occur during update routing. /// /// The instance. /// The exception that occurred. /// The indicating the source of the error. /// The cancellation token. public void HandleException(ITelegramBotClient botClient, Exception exception, HandleErrorSource source, CancellationToken cancellationToken); } }