Загрузка...

Inline keyboard error

Thread in Python created by K1p1k Feb 1, 2025. 178 views

  1. K1p1k
    K1p1k Topic starter Feb 1, 2025 23 Jul 1, 2022
    Python
    async def user_enter_pin_code():
    inline_kb_list = [
    [InlineKeyboardButton(text="1", callback_data='one'), InlineKeyboardButton(text="2", callback_data='two'), InlineKeyboardButton(text="3", callback_data='three')],
    [InlineKeyboardButton(text="4", callback_data='four'), InlineKeyboardButton(text="5", callback_data='five'), InlineKeyboardButton(text="6", callback_data='six')],
    [InlineKeyboardButton(text="7", callback_data='seven'), InlineKeyboardButton(text="8", callback_data='eight'), InlineKeyboardButton(text="9", callback_data='nine')],
    [InlineKeyboardButton(text="✅", callback_data='accept'), InlineKeyboardButton(text="0", callback_data='zero'), InlineKeyboardButton(text="", callback_data='back')]
    ]
    return InlineKeyboardMarkup(inline_keyboard=inline_kb_list)
    Python
    await self.message_login.edit_text(await get_text_point(list_acces=[True, False, False, False], choice_point=3), reply_markup=await user_enter_pin_code())
    Bad Request: can't parse inline keyboard button: Text buttons are unallowed in the inline keyboard
     
    1. am1rqr
      K1p1k, нельзя поменять клавиатуру в данном сообщении, и для клавиатуры такого типа лучше используй билдер
  2. derkown
    ну бывает
     
    1. K1p1k Topic starter
      derkown, Bad Request: can't parse inline keyboard button: Text buttons are unallowed in the inline keyboard
    2. derkown
      K1p1k, ну классно
  3. rage
    rage Feb 1, 2025 marlboro country 725 Jan 18, 2020
    и чё мы должны сказать
     
    1. K1p1k Topic starter
      rage, Bad Request: can't parse inline keyboard button: Text buttons are unallowed in the inline keyboard
  4. rage
    rage Feb 1, 2025 marlboro country 725 Jan 18, 2020
     
  5. рандомли
    рандомли Feb 1, 2025 Banned 836 Apr 23, 2023
    [IMG]
    тут и есть ошибка. Апи не допускает пустых кнопок
     
Top
Loading...