Update BotBase.cs
Small fix
This commit is contained in:
parent
fb7b624ad8
commit
b74233d66d
@ -87,6 +87,10 @@ namespace TelegramBotBase
|
|||||||
{
|
{
|
||||||
this.APIKey = apiKey;
|
this.APIKey = apiKey;
|
||||||
|
|
||||||
|
this.BotCommands = new List<BotCommand>();
|
||||||
|
|
||||||
|
this.Sessions = new SessionBase();
|
||||||
|
|
||||||
if (initClient)
|
if (initClient)
|
||||||
{
|
{
|
||||||
this.Client = new Base.MessageClient(this.APIKey);
|
this.Client = new Base.MessageClient(this.APIKey);
|
||||||
@ -95,9 +99,7 @@ namespace TelegramBotBase
|
|||||||
this.Sessions.Client = this.Client;
|
this.Sessions.Client = this.Client;
|
||||||
}
|
}
|
||||||
|
|
||||||
this.BotCommands = new List<BotCommand>();
|
|
||||||
|
|
||||||
this.Sessions = new SessionBase();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user