Answer the question
In order to leave comments, you need to log in
If the entered data does not match the base True or False?
@dp.message_handler(state=GetUserInfo.waiting_for_user_idd, content_types=types.ContentTypes.TEXT)
async def surname_handler(message: types.Message, state: FSMContext):
d = message.text
for i in corr:
if i['number'] == d:
news = f"<b>{i['date']}</b>\n" \
f"{i['judge']}\n" \
f"{i['forma']}\n" \
f"{i['number']}\n" \
f"<b>{i['involved']}</b>\n" \
f"{i['description']}\n"
await bot.send_message(message.from_user.id, news)
await state.finish()
Answer the question
In order to leave comments, you need to log in
for i in corr:
if i['number'] == d:
news = f"<b>{i['date']}</b>\n" \
f"{i['judge']}\n" \
f"{i['forma']}\n" \
f"{i['number']}\n" \
f"<b>{i['involved']}</b>\n" \
f"{i['description']}\n"
await bot.send_message(message.from_user.id, news)
await state.finish()
break
else:
# не совпадают
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question