電報ボットを作成していますが、InlineKeyboardButtonオブジェクトを作成できません。c#InlineKeyboardButtonを作成できません
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using Telegram.Bot.Types.InlineKeyboardButtons;
namespace BuildAutomation.Controllers
{
public class Test
{
public TestMethod()
{
var none = new InlineKeyboardButton("No", "build|no");
var yes = "Yes";
var betaControl = new InlineKeyboardButton(yes, "build|betacontrol");
var betaNode = new InlineKeyboardButton(yes, "build|betanode");
var betaBoth = new InlineKeyboardButton(yes, "build|betaboth");
InlineKeyboardMarkup menu;
menu = new InlineKeyboardMarkup(new[] { betaBoth, none });
}
}
}
私はInlineKeyboardButton 『"抽象クラスやインタフェースのインスタンスを作成できません』エラーを取得しておきます。私はInlineKeyboardButtonは抽象クラスですが、InlineKeyboardButtonのオブジェクトを作成する多くの例があります。
私は何かを見逃しましたか? InlineKeyboardButton
の