From fc980aa59a534eb674164f546cdb53d971e230bb Mon Sep 17 00:00:00 2001 From: Pavel_Duron Date: Sat, 29 Oct 2022 14:26:58 +1000 Subject: [PATCH] fix --- bot.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/bot.py b/bot.py index 509f56f..2e131aa 100644 --- a/bot.py +++ b/bot.py @@ -11,12 +11,12 @@ bot = Bot(token=API_TOKEN) dp = Dispatcher(bot) @dp.message_handler(commands=['start']) -async def start_func(message: types.input_file('PYTHON_BOT/ya-pidoras.jpg')): +async def start_func(message: types.Message): user_id = message.from_user.id user_full_name = message.from_user.full_name logging.INFO(f'{user_id=} {user_full_name=}', {time.asctime()}) - #await bot.send_photo(types.input_file('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)