From 968e60c6a3c9c2daca73f2ce13c4be945f2bfb0a Mon Sep 17 00:00:00 2001 From: Pavel_Duron Date: Sun, 30 Oct 2022 21:17:21 +1000 Subject: [PATCH] =?UTF-8?q?=D0=B4=D0=BE=D0=B1=D0=B0=D0=B2=D0=B8=D0=BB=20?= =?UTF-8?q?=D0=BA=D0=B0=D1=80=D1=82=D0=B8=D0=BD=D0=BA=D1=83=20=D1=81=D1=81?= =?UTF-8?q?=D1=8B=D0=BB=D0=BA=D0=BE=D0=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- bot.py | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/bot.py b/bot.py index 061eba0..15d172e 100644 --- a/bot.py +++ b/bot.py @@ -17,12 +17,11 @@ 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 message('hello') + await message.reply('hello') @dp.message_handler(commands=['photo']) -async def photo(message: types.Message): - lion = FSInputFile("ya-pidoras.jpg") - await bot.send_photo(lion) +async def send_image(message: types.Message): + await bot.send_photo(message.chat.id, photo='http://git.vdk2ch.ru:3000/Pavel_Durov/python_bot/raw/branch/main/ya-pidoras.jpg')