Telegram.Bot icon indicating copy to clipboard operation
Telegram.Bot copied to clipboard

KeyboardButton

Open eaba opened this issue 10 years ago • 4 comments

Hello @MrRoundRobin please how can the KeyboardButton be used? I need this very urgently. Your efforts are appreciated!!

eaba avatar Apr 27 '16 18:04 eaba

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);

MrRoundRobin avatar Apr 29 '16 16:04 MrRoundRobin

Thanks

eaba avatar Apr 29 '16 16:04 eaba

"KeyboardButton" is undefined type!!!! but i can find it in source code.

sorenaa avatar Jun 10 '16 08:06 sorenaa

I guess you have to update your Telegram.Bot library. If I remember correctly KeyboardButton was introduced in version 9.0.

thoemmi avatar Jun 10 '16 08:06 thoemmi