diff --git a/bot.py b/bot.py index 2c87fc2..8977dab 100644 --- a/bot.py +++ b/bot.py @@ -16,7 +16,7 @@ async def start_func(message: types.Message) user_full_name = message.from_user.full_name logging.INFO(f'{user_id=} {user_full_name=}', {time.asctime()}) - await bot.send_photo(inputFile('PYTHON_BOT/ya-pidoras.jpg')) + await bot.send_photo(types.input_file('PYTHON_BOT/ya-pidoras.jpg')) if __name__ == '__main__': executor.start_polling(dp, skip_updates=True) @@ -24,4 +24,3 @@ if __name__ == '__main__': -executor.start_polling(dp, skip_updates=True) \ No newline at end of file