diff --git a/Examples/DependencyInjection/Program.cs b/Examples/DependencyInjection/Program.cs index f33bf53..1e32385 100644 --- a/Examples/DependencyInjection/Program.cs +++ b/Examples/DependencyInjection/Program.cs @@ -25,6 +25,7 @@ namespace DependencyInjection .NoCommands() .NoSerialization() .DefaultLanguage() + .UseSingleThread() .Build(); await bot.Start(); diff --git a/Examples/EFCoreBot/Program.cs b/Examples/EFCoreBot/Program.cs index 37f5587..e49a1c1 100644 --- a/Examples/EFCoreBot/Program.cs +++ b/Examples/EFCoreBot/Program.cs @@ -18,6 +18,7 @@ var bot = BotBaseBuilder.Create() .NoCommands() .NoSerialization() .DefaultLanguage() + .UseSingleThread() .Build(); await bot.Start(); diff --git a/Examples/InlineAndReplyCombination/Program.cs b/Examples/InlineAndReplyCombination/Program.cs index fab456d..7354ec7 100644 --- a/Examples/InlineAndReplyCombination/Program.cs +++ b/Examples/InlineAndReplyCombination/Program.cs @@ -21,6 +21,7 @@ namespace InlineAndReplyCombination .DefaultCommands() .UseJSON(Path.Combine(Directory.GetCurrentDirectory(), "states.json")) .UseEnglish() + .UseSingleThread() .Build();