From 620e3fcd10d5514a8c975ca8417722b8eee06ed5 Mon Sep 17 00:00:00 2001 From: Pavel_Duron Date: Tue, 1 Nov 2022 18:52:08 +1000 Subject: [PATCH] =?UTF-8?q?=D0=BF=D1=80=D0=BE=D0=B1=D1=83=D1=8E=20=D0=B2?= =?UTF-8?q?=D1=8B=D0=B3=D1=80=D1=83=D0=B7=D0=B8=D1=82=D1=8C=20=D0=BF=D0=B8?= =?UTF-8?q?=D0=BA=D1=87=D1=83=20=D1=81=20=D1=81=D0=B5=D1=80=D0=B2=D0=B5?= =?UTF-8?q?=D1=80=D0=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- bot.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/bot.py b/bot.py index 15025ef..ad5221b 100644 --- a/bot.py +++ b/bot.py @@ -1,3 +1,4 @@ +from cgitb import text import time import logging @@ -22,6 +23,10 @@ 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 = "хто я" ) +async def send_faggot(message: types.Message): + await bot.send_photo(message.chat.id, photo=open('/usr/share/python_bot/faggot.jpg', 'rb')) + #хуй if __name__ == '__main__':