Adding OnlyStart BotBaseBuilder command option
This commit is contained in:
parent
d5a89a4ed8
commit
18bb6584f4
@ -145,6 +145,14 @@ namespace TelegramBotBase.Builder
|
|||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public ISessionSerializationStage OnlyStart()
|
||||||
|
{
|
||||||
|
_botcommands.Start("Starts the bot");
|
||||||
|
|
||||||
|
return this;
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
public ISessionSerializationStage DefaultCommands()
|
public ISessionSerializationStage DefaultCommands()
|
||||||
{
|
{
|
||||||
_botcommands.Start("Starts the bot");
|
_botcommands.Start("Starts the bot");
|
||||||
|
|||||||
@ -21,6 +21,13 @@ namespace TelegramBotBase.Builder.Interfaces
|
|||||||
ISessionSerializationStage DefaultCommands();
|
ISessionSerializationStage DefaultCommands();
|
||||||
|
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Only adds the start command.
|
||||||
|
/// </summary>
|
||||||
|
/// <returns></returns>
|
||||||
|
ISessionSerializationStage OnlyStart();
|
||||||
|
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Gives you the ability to add custom commands.
|
/// Gives you the ability to add custom commands.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user