косяк в коде поправил

This commit is contained in:
Pavel_Duron 2022-10-29 14:12:41 +10:00
parent 2ef1bb10fd
commit de1883d17f

3
bot.py
View File

@ -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)