From a1b3b9246b50d6c29e67329737bbf53f3fb66a24 Mon Sep 17 00:00:00 2001 From: FlorianDahn Date: Sat, 11 Apr 2020 19:42:24 +0200 Subject: [PATCH] Update BotBase.cs fixing new command handling --- TelegramBotBase/BotBase.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/TelegramBotBase/BotBase.cs b/TelegramBotBase/BotBase.cs index 7db1cf4..c86695e 100644 --- a/TelegramBotBase/BotBase.cs +++ b/TelegramBotBase/BotBase.cs @@ -256,8 +256,8 @@ namespace TelegramBotBase ds.LastAction = DateTime.Now; ds.LastMessage = e.Message; - //Is this a systemcall ? - if (e.IsBotCommand && this.BotCommands.Count(a => a.Command == e.BotCommand) > 0) + //Is this a bot command ? + if (e.IsBotCommand && this.BotCommands.Count(a => "/" + a.Command == e.BotCommand) > 0) { var sce = new BotCommandEventArgs(e.BotCommand, e.BotCommandParameters, e.Message, ds.DeviceId, ds); await OnBotCommand(sce);