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;
|
return this;
|
||||||
}
|
}
|
||||||
|
|
||||||
public ISessionSerializationStage Configure(Action<List<BotCommand>> action)
|
public ISessionSerializationStage CustomCommands(Action<List<BotCommand>> action)
|
||||||
{
|
{
|
||||||
action?.Invoke(_botcommands);
|
action?.Invoke(_botcommands);
|
||||||
return this;
|
return this;
|
||||||
|
|||||||
@ -23,7 +23,7 @@ namespace TelegramBotBaseTest
|
|||||||
.WithAPIKey(APIKey)
|
.WithAPIKey(APIKey)
|
||||||
.WithStartForm<Start>()
|
.WithStartForm<Start>()
|
||||||
.NoProxy()
|
.NoProxy()
|
||||||
.Configure(a =>
|
.CustomCommands(a =>
|
||||||
{
|
{
|
||||||
a.AddStartCommand("Starts the bot");
|
a.AddStartCommand("Starts the bot");
|
||||||
a.AddHelpCommand("Should show you some help");
|
a.AddHelpCommand("Should show you some help");
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user