Telegram.Bot
Telegram.Bot copied to clipboard
KeyboardButton
Hello @MrRoundRobin please how can the KeyboardButton be used? I need this very urgently. Your efforts are appreciated!!
something like
var keyboard = new ReplyKeyboardMarkup
{
Keyboard = new[]
{
new KeyboardButton[] // First Row
{
"A",
"B",
},
new KeyboardButton[] // Second Row
{
"C",
"D",
},
}
};
await Bot.SendTextMessage(message.Chat.Id, "Custom Keyboard", replyMarkup: keyboard);
Thanks
"KeyboardButton" is undefined type!!!! but i can find it in source code.
I guess you have to update your Telegram.Bot library. If I remember correctly KeyboardButton was introduced in version 9.0.