diff --git a/TelegramBotBase/Commands/Extensions.cs b/TelegramBotBase/Commands/Extensions.cs new file mode 100644 index 0000000..47b415e --- /dev/null +++ b/TelegramBotBase/Commands/Extensions.cs @@ -0,0 +1,40 @@ +using System; +using System.Collections.Generic; +using System.Text; +using Telegram.Bot.Types; + +namespace TelegramBotBase.Commands +{ + public static class Extensions + { + /// + /// Adding the default /start command with a description. + /// + /// + /// + public static void AddStartCommand(this List cmds, String description) + { + cmds.Add(new BotCommand() { Command = "/start", Description = description }); + } + + /// + /// Adding the default /help command with a description. + /// + /// + /// + public static void AddHelpCommand(this List cmds, String description) + { + cmds.Add(new BotCommand() { Command = "/help", Description = description }); + } + + /// + /// Adding the default /settings command with a description. + /// + /// + /// + public static void AddSettingsCommand(this List cmds, String description) + { + cmds.Add(new BotCommand() { Command = "/settings", Description = description }); + } + } +}