Python
- 2 ответа
- 0 вопросов
0
Вклад в тег
@router.message(Form.work_with_photo)
async def echo_photo_message(message: Message, state: FSMContext, bot: Bot):
if message.photo:
file_name = f"photos/{message.photo[-1].file_id}.jpg"
await bot.download(message.photo[-1], destination=file_name)