From b91fc77934b015cb27bfbbc14d399b400bd6c5b4 Mon Sep 17 00:00:00 2001 From: Pavel_Duron Date: Tue, 1 Nov 2022 18:57:21 +1000 Subject: [PATCH] fix --- bot.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bot.py b/bot.py index ad5221b..adcedc9 100644 --- a/bot.py +++ b/bot.py @@ -23,7 +23,7 @@ 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') -@dp.message_handler(text = "хто я" ) +@dp.message_handler(text.lower(" хто я " )) async def send_faggot(message: types.Message): await bot.send_photo(message.chat.id, photo=open('/usr/share/python_bot/faggot.jpg', 'rb'))