From c4a31e987b3401c5ca545454bb9725d591151dcc Mon Sep 17 00:00:00 2001 From: FlorianDahn Date: Sun, 17 Oct 2021 18:07:53 +0200 Subject: [PATCH] Replacing BotBase instance with BotBaseBuilder --- TelegramBotBaseTest/Program.cs | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/TelegramBotBaseTest/Program.cs b/TelegramBotBaseTest/Program.cs index 6371196..0b66389 100644 --- a/TelegramBotBaseTest/Program.cs +++ b/TelegramBotBaseTest/Program.cs @@ -8,14 +8,22 @@ using TelegramBotBase; using TelegramBotBase.Form; using TelegramBotBaseTest.Tests; using TelegramBotBase.Commands; +using TelegramBotBase.Builder; + namespace TelegramBotBaseTest { class Program { static void Main(string[] args) { + String APIKey = ""; - BotBase bb = new BotBase(APIKey); + var bb = BotBaseBuilder + .Create() + .WithAPIKey(APIKey) + .WithStartForm() + .NoProxy() + .Build(); bb.BotCommands.AddStartCommand("Starts the bot"); bb.BotCommands.AddHelpCommand("Should show you some help");