'Can't parse entities: unexpected end tag at byte offset 0
i dont known, pls help
async def getcatalog(message: types.message):
if catalog.find_one({"type": 0}) is None:
await message.answer('К сожалению, товаров нет в наличии')
else:
inline_kb = types.InlineKeyboardMarkup()
for cat in catalog.find({"type": 0}):
inline_btn = InlineKeyboardButton(cat['name'], callback_data=cat['name'])
inline_kb = InlineKeyboardMarkup().add(inline_btn)
await bot.send_message(message.from_user.id, f'</b>🎁 Выберите нужный вам товар:</b>', reply_markup=inline_kb)
Solution 1:[1]
Replace:
f'</b>? ???????? ?????? ??? ?????:</b>'
with:
f'<b>? ???????? ?????? ??? ?????:</b>'
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
Solution | Source |
---|---|
Solution 1 | RiveN |