Files
Telegrator/src/Telegrator.Hosting.WideBot/WideBotOptions.cs
T

32 lines
1.1 KiB
C#
Raw Normal View History

2026-05-01 20:50:56 +04:00
using Telegram.Bot;
using WTelegram;
2026-05-01 20:48:32 +04:00
namespace Telegrator;
2026-05-01 20:50:56 +04:00
/// <summary>
/// Represents configuration options for initializing and customizing the behavior of a WideBot instance.
/// </summary>
/// <remarks>Use this class to specify required API credentials, optional proxy settings, update handling
/// preferences, and SQL command detection for WideBot. All required properties must be set before using the options
/// with a WideBot instance.
/// </remarks>
2026-05-01 20:48:32 +04:00
public class WideBotOptions
{
2026-05-01 20:50:56 +04:00
/// <inheritdoc cref="WTelegramBotClientOptions.ApiId"/>
2026-05-01 20:48:32 +04:00
public required int ApiId { get; set; }
2026-05-01 20:50:56 +04:00
/// <inheritdoc cref="WTelegramBotClientOptions.ApiHash"/>
2026-05-01 20:48:32 +04:00
public required string ApiHash { get; set; }
2026-05-01 20:50:56 +04:00
/// <inheritdoc cref="WTelegramBotClientOptions.MTProxy"/>
2026-05-01 20:48:32 +04:00
public string? MTProxy { get; set; }
2026-05-01 20:50:56 +04:00
/// <inheritdoc cref="WTelegramBotClientOptions.SqlCommands"/>
2026-05-01 20:48:32 +04:00
public SqlCommands SqlCommands { get; set; } = WTelegram.SqlCommands.Detect;
2026-05-01 20:50:56 +04:00
/// <summary>
/// Gets or sets a value indicating whether pending updates should be discarded.
/// </summary>
public bool DropPendingUpdates { get; set; }
2026-05-01 20:48:32 +04:00
}