From 9ebf6c87c1331ac7c6090fb892f0773c92ce73aa Mon Sep 17 00:00:00 2001 From: Pavel_Duron Date: Tue, 1 Nov 2022 19:40:45 +1000 Subject: [PATCH] fix --- bot.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/bot.py b/bot.py index 95df2c8..b53bd9a 100644 --- a/bot.py +++ b/bot.py @@ -23,8 +23,9 @@ async def start_func(message: types.Message): async def send_image(message: types.Message): await bot.send_photo(message.chat.id, photo='https://memepedia.ru/wp-content/uploads/2018/08/ya-pidoras.jpg') -if text == "хто я" - bot.send_photo(photo='https://www.meme-arsenal.com/memes/ecebd2339c7eab40e09874bd86a38a09.jpg') +@dp.message_handler(text == "хто я" ) +async def send_faggot(message: types.Message): + await bot.send_photo(message.chat.id, photo='https://www.meme-arsenal.com/memes/ecebd2339c7eab40e09874bd86a38a09.jpg') #хуй