This commit is contained in:
Pavel_Duron 2022-11-01 18:57:21 +10:00
parent 32962db65f
commit b91fc77934

2
bot.py
View File

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