Adding OnlyStart BotBaseBuilder command option

This commit is contained in:
FlorianDahn 2022-01-05 18:25:33 +01:00
parent d5a89a4ed8
commit 18bb6584f4
2 changed files with 15 additions and 0 deletions

View File

@ -145,6 +145,14 @@ namespace TelegramBotBase.Builder
return this;
}
public ISessionSerializationStage OnlyStart()
{
_botcommands.Start("Starts the bot");
return this;
}
public ISessionSerializationStage DefaultCommands()
{
_botcommands.Start("Starts the bot");

View File

@ -21,6 +21,13 @@ namespace TelegramBotBase.Builder.Interfaces
ISessionSerializationStage DefaultCommands();
/// <summary>
/// Only adds the start command.
/// </summary>
/// <returns></returns>
ISessionSerializationStage OnlyStart();
/// <summary>
/// Gives you the ability to add custom commands.
/// </summary>