diff --git a/TelegramBotBase/Builder/BotBaseBuilder.cs b/TelegramBotBase/Builder/BotBaseBuilder.cs index 7ed473f..9bc8794 100644 --- a/TelegramBotBase/Builder/BotBaseBuilder.cs +++ b/TelegramBotBase/Builder/BotBaseBuilder.cs @@ -106,7 +106,7 @@ namespace TelegramBotBase.Builder return this; } - public ISessionSerializationStage Configure(Action> action) + public ISessionSerializationStage CustomCommands(Action> action) { action?.Invoke(_botcommands); return this; diff --git a/TelegramBotBaseTest/Program.cs b/TelegramBotBaseTest/Program.cs index 616dc3a..b1b6f2b 100644 --- a/TelegramBotBaseTest/Program.cs +++ b/TelegramBotBaseTest/Program.cs @@ -23,7 +23,7 @@ namespace TelegramBotBaseTest .WithAPIKey(APIKey) .WithStartForm() .NoProxy() - .Configure(a => + .CustomCommands(a => { a.AddStartCommand("Starts the bot"); a.AddHelpCommand("Should show you some help");