@dp.message_handler(content_types=["text"])
async def text(message: types.Message):
if "текст" in message.text.lower():
await bot.send_photo(message.chat.id, "file_id")
@dp.message_handler(content_types=['text'], text='текст')
async def send_ph(message: types.Message):
idphoto123 = 'AgACAgIAAxkBAAID52JfIv2PRgjY0Kvhty0EDykFZgkQAAI-vTEbybr5SkuyXB15623LAQADAgADeAADJAQ'
await message.reply_photo(idphoto123)
@dp.message_handler(content_types=['photo'])
async def get_file_id_p(message: types.Message):
await message.reply(message.photo[-1].file_id)