简体   繁体   中英

C# Telegram Bot Api ReplyKeyboardMarkup using html inside

I wantto write telegram bot using https://github.com/TelegramBots/telegram.bot I want to use html tags inside KeyboardButton. I'm trying like this:

public static ReplyKeyboardMarkup rkmStartButton
    {
        get
        {
            KeyboardButton btnCanal = new KeyboardButton("<b>bold</b>");

            ReplyKeyboardMarkup rkmStartButton = new ReplyKeyboardMarkup();
            rkmStartButton.ResizeKeyboard = true;

            rkmStartButton.Keyboard = new KeyboardButton[][]
            {
               new KeyboardButton[]
               {
                   btnCanal
               }
              };

            return rkmStartButton;
        }
    }

But in telegram button text looks like < b > bold < / b >, must be: I try many variants, but they still doesnot work.我尝试了很多变体,但它们仍然不起作用。 How i can do this?

不幸的是,您目前无法格式化键盘按钮文本,您可以向@BotSupport提出建议。

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM