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 Start(this List cmds, String description) { cmds.Add(new BotCommand() { Command = "start", Description = description }); } /// /// Adding the default /help command with a description. /// /// /// public static void Help(this List cmds, String description) { cmds.Add(new BotCommand() { Command = "help", Description = description }); } /// /// Adding the default /settings command with a description. /// /// /// public static void Settings(this List cmds, String description) { cmds.Add(new BotCommand() { Command = "settings", Description = description }); } /// /// Adding the command with a description. /// /// /// /// public static void Add(this List cmds, String command, String description) { cmds.Add(new BotCommand() { Command = command, Description = description }); } } }