From 396a524d9436a419be07c79b13a02ee3d35b8a40 Mon Sep 17 00:00:00 2001 From: Florian Zevedei Date: Sun, 10 Mar 2024 16:01:45 +0100 Subject: [PATCH] BotBaseBuilder fix --- TelegramBotBase/Builder/BotBaseBuilder.cs | 12 ++++++------ .../Builder/Interfaces/ILanguageSelectionStage.cs | 12 ++++++------ 2 files changed, 12 insertions(+), 12 deletions(-) diff --git a/TelegramBotBase/Builder/BotBaseBuilder.cs b/TelegramBotBase/Builder/BotBaseBuilder.cs index 64596b9..1baeba2 100644 --- a/TelegramBotBase/Builder/BotBaseBuilder.cs +++ b/TelegramBotBase/Builder/BotBaseBuilder.cs @@ -399,41 +399,41 @@ public class BotBaseBuilder : IAPIKeySelectionStage, IMessageLoopSelectionStage, #region "Step 7 (Language)" /// - public IBuildingStage DefaultLanguage() + public IThreadingStage DefaultLanguage() { return this; } /// - public IBuildingStage UseEnglish() + public IThreadingStage UseEnglish() { Default.Language = new English(); return this; } /// - public IBuildingStage UseGerman() + public IThreadingStage UseGerman() { Default.Language = new German(); return this; } /// - public IBuildingStage UsePersian() + public IThreadingStage UsePersian() { Default.Language = new Persian(); return this; } /// - public IBuildingStage UseRussian() + public IThreadingStage UseRussian() { Default.Language = new Russian(); return this; } /// - public IBuildingStage Custom(Localization language) + public IThreadingStage Custom(Localization language) { Default.Language = language; return this; diff --git a/TelegramBotBase/Builder/Interfaces/ILanguageSelectionStage.cs b/TelegramBotBase/Builder/Interfaces/ILanguageSelectionStage.cs index b06addd..769e698 100644 --- a/TelegramBotBase/Builder/Interfaces/ILanguageSelectionStage.cs +++ b/TelegramBotBase/Builder/Interfaces/ILanguageSelectionStage.cs @@ -11,35 +11,35 @@ public interface ILanguageSelectionStage /// Selects the default language for control usage. (English) /// /// The next stage in the building process. - IBuildingStage DefaultLanguage(); + IThreadingStage DefaultLanguage(); /// /// Selects english as the default language for control labels. /// /// The next stage in the building process. - IBuildingStage UseEnglish(); + IThreadingStage UseEnglish(); /// /// Selects german as the default language for control labels. /// /// The next stage in the building process. - IBuildingStage UseGerman(); + IThreadingStage UseGerman(); /// /// Selects persian as the default language for control labels. /// /// The next stage in the building process. - IBuildingStage UsePersian(); + IThreadingStage UsePersian(); /// /// Selects russian as the default language for control labels. /// /// The next stage in the building process. - IBuildingStage UseRussian(); + IThreadingStage UseRussian(); /// /// Selects a custom language as the default language for control labels. /// /// The next stage in the building process. - IBuildingStage Custom(Localization language); + IThreadingStage Custom(Localization language); } \ No newline at end of file