From e9569545d8456b4435e05f13417ba847fe77cd3a Mon Sep 17 00:00:00 2001 From: gutii Date: Fri, 1 May 2026 20:50:56 +0400 Subject: [PATCH] * Added missing summaries --- docs/Telegrator.Hosting.WideBot.xml | 26 +++++++++++++++++++ .../WideBotOptions.cs | 21 ++++++++++++--- 2 files changed, 44 insertions(+), 3 deletions(-) diff --git a/docs/Telegrator.Hosting.WideBot.xml b/docs/Telegrator.Hosting.WideBot.xml index 7af72c1..c271597 100644 --- a/docs/Telegrator.Hosting.WideBot.xml +++ b/docs/Telegrator.Hosting.WideBot.xml @@ -175,5 +175,31 @@ Initializes the bot and logs handlers on application startup. + + + Represents configuration options for initializing and customizing the behavior of a WideBot instance. + + 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. + + + + + + + + + + + + + + + + + Gets or sets a value indicating whether pending updates should be discarded. + + diff --git a/src/Telegrator.Hosting.WideBot/WideBotOptions.cs b/src/Telegrator.Hosting.WideBot/WideBotOptions.cs index 7beadc9..4906b6e 100644 --- a/src/Telegrator.Hosting.WideBot/WideBotOptions.cs +++ b/src/Telegrator.Hosting.WideBot/WideBotOptions.cs @@ -1,16 +1,31 @@ -using WTelegram; +using Telegram.Bot; +using WTelegram; namespace Telegrator; +/// +/// Represents configuration options for initializing and customizing the behavior of a WideBot instance. +/// +/// 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. +/// public class WideBotOptions { + /// public required int ApiId { get; set; } + /// public required string ApiHash { get; set; } + /// public string? MTProxy { get; set; } - public bool DropPendingUpdates { get; set; } - + /// public SqlCommands SqlCommands { get; set; } = WTelegram.SqlCommands.Detect; + + /// + /// Gets or sets a value indicating whether pending updates should be discarded. + /// + public bool DropPendingUpdates { get; set; } }