labels: {{ labels | safe }},
и data: {{ values | safe }},
horo_ukr
и сверять ввод с ним@dp.inline_handler()
async def inline_echo(inline_query: InlineQuery):
text = inline_query.query.lower()
if text not in horo_ukr:
return
telebot.types.ReplyKeyboardRemove()
bot.send_message(message.chat.id, 'Зараз', reply_markup=telebot.types.ReplyKeyboardRemove())
keyboard = types.InlineKeyboardMarkup(row_width=3)
nine = types.InlineKeyboardButton('⬅️Назад', callback_data='nine')
close = types.InlineKeyboardButton('↩️Скасувати', callback_data='close')
two = types.InlineKeyboardButton('➡️Вперед', callback_data='two')
keyboard.add(nine, close, two)
bot.send_photo(message.chat.id, '<file_id>', caption = 'Текст.', reply_markup=keyboard)
bmi['bot_mes_id']
?очень странно, так как сообщение бота, соответствующее используемому id существует в чате
graph.html
diarg.js