From 9775118ab3b871e1315f9f6bc98188ae19fc722a Mon Sep 17 00:00:00 2001 From: Pavel_Duron Date: Thu, 3 Nov 2022 16:35:10 +1000 Subject: [PATCH] =?UTF-8?q?=D0=B2=D1=8B=D0=B2=D0=BE=D0=B4=20=D0=B2=D1=80?= =?UTF-8?q?=D0=B5=D0=BC=D0=B5=D0=BD=D0=B8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- bot.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/bot.py b/bot.py index 0c00984..bf8893c 100644 --- a/bot.py +++ b/bot.py @@ -17,10 +17,10 @@ dp = Dispatcher(bot) @dp.message_handler(commands=["time"]) async def send_time(message: types.Message): current_datatime = datetime.datetime.now() - current_data = current_datatime.date() - current_time = current_datatime.time() - new_year = datetime.date(2022, 12, 31) - await message.reply('Сегодня' + current_data + '\nВремя' + current_time + '\nДо нового года осталось' + new_year) #отображение времени, пока не рабоатет + # current_data = current_datatime.date() + # current_time = current_datatime.time() + # new_year = datetime.date(2022, 12, 31) + await message.reply('Сегодня' + current_datatime) #отображение времени, пока не рабоатет