From de1883d17f1ab7d59c6088bc0fc3fdf888ee31ff Mon Sep 17 00:00:00 2001 From: Pavel_Duron Date: Sat, 29 Oct 2022 14:12:41 +1000 Subject: [PATCH] =?UTF-8?q?=D0=BA=D0=BE=D1=81=D1=8F=D0=BA=20=D0=B2=20?= =?UTF-8?q?=D0=BA=D0=BE=D0=B4=D0=B5=20=D0=BF=D0=BE=D0=BF=D1=80=D0=B0=D0=B2?= =?UTF-8?q?=D0=B8=D0=BB?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- bot.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) 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