2025-07-28 20:35:48 +04:00
|
|
|
using Telegrator.Configuration;
|
|
|
|
|
|
|
|
|
|
namespace Telegrator
|
|
|
|
|
{
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// Configuration options for Telegram bot behavior and execution settings.
|
|
|
|
|
/// Controls various aspects of bot operation including concurrency, routing, and execution policies.
|
|
|
|
|
/// </summary>
|
|
|
|
|
public class TelegratorOptions : ITelegratorOptions
|
|
|
|
|
{
|
|
|
|
|
/// <inheritdoc/>
|
2025-08-02 02:32:38 +04:00
|
|
|
public int? MaximumParallelWorkingHandlers { get; set; }
|
2025-07-28 20:35:48 +04:00
|
|
|
|
|
|
|
|
/// <inheritdoc/>
|
2025-08-02 02:32:38 +04:00
|
|
|
public bool ExclusiveAwaitingHandlerRouting { get; set; }
|
2025-07-28 20:35:48 +04:00
|
|
|
|
|
|
|
|
/// <inheritdoc/>
|
|
|
|
|
public bool ExceptIntersectingCommandAliases { get; set; } = true;
|
|
|
|
|
|
2025-08-02 02:32:38 +04:00
|
|
|
/// <inheritdoc/>
|
|
|
|
|
public CancellationToken GlobalCancellationToken { get; set; }
|
2025-07-28 20:35:48 +04:00
|
|
|
}
|
|
|
|
|
}
|