あなたは、ユーザーにインラインキーボードを送信するには、このコードを使用することができます:
var inlineKeyboardMarkup = new InlineKeyboardMarkup
{
InlineKeyboard = new []
{
new [] { new InlineKeyboardButton { Text = "Inline Keyboard button", CallbackData = "demo", Url = ""} }
}
};
var newmsg = new SendMessage(update.Message.Chat.Id, "<b>check my new inline keyboard</b>")
{
ReplyMarkup = inlineKeyboardMarkup,
ParseMode = SendMessage.ParseModeEnum.HTML,DisableNotification = false,DisableWebPagePreview = false
};
WriteMessageToConsole(update.Message.Chat.Id, "_check my new inline keyboard_");
bot.MakeRequestAsync(newmsg).Wait();