Replacing Configure method in BBB with CustomCommands
This commit is contained in:
parent
b001d5e9c4
commit
d0edf8531c
@ -106,7 +106,7 @@ namespace TelegramBotBase.Builder
|
||||
return this;
|
||||
}
|
||||
|
||||
public ISessionSerializationStage Configure(Action<List<BotCommand>> action)
|
||||
public ISessionSerializationStage CustomCommands(Action<List<BotCommand>> action)
|
||||
{
|
||||
action?.Invoke(_botcommands);
|
||||
return this;
|
||||
|
||||
@ -23,7 +23,7 @@ namespace TelegramBotBaseTest
|
||||
.WithAPIKey(APIKey)
|
||||
.WithStartForm<Start>()
|
||||
.NoProxy()
|
||||
.Configure(a =>
|
||||
.CustomCommands(a =>
|
||||
{
|
||||
a.AddStartCommand("Starts the bot");
|
||||
a.AddHelpCommand("Should show you some help");
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user