D
D
Dmitry Prokhorov2021-10-30 21:47:09
Python
Dmitry Prokhorov, 2021-10-30 21:47:09

Does parse_mode work in InlineKeyboardButton?

parse_mode="HTML" not working in inlineKeyboardButton Aiogram

import aiogram.utils.markdown as fmt

@dp.message_handler(commands=['start'])
async def starts(message: types.Message, state: FSMContext):
  recording_btn = InlineKeyboardButton(fmt.text(fmt.hunderline("1"), parse_mode="HTML"), callback_data="application")
  call_back_btn = InlineKeyboardButton('2',callback_data="application")
  my_records_btn = InlineKeyboardButton('3',callback_data="application")
  print(message.from_user.id)
  print(message)
  record_keyboard = InlineKeyboardMarkup(resize_keyboard=True,one_time_keyboard=True).add(recording_btn).add(call_back_btn).add(my_records_btn)
  await bot.send_message(message.from_user.id, "1", reply_markup=record_keyboard)

Answer the question

In order to leave comments, you need to log in

1 answer(s)
S
soremix, 2021-10-30
@oooookkkkkk1

No
https://core.telegram.org/bots/api#inlinekeyboardbutton

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question