вывод времени
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
Pavel_Duron 2022-11-03 17:12:09 +10:00
parent 0f50512cd1
commit a96240d561

3
bot.py
View File

@ -17,11 +17,10 @@ dp = Dispatcher(bot)
@dp.message_handler(commands=["time"])
async def send_time(message: types.Message):
current_datatime = datetime.datetime.now()
outpoot = 'сегодня', current_datatime
# current_data = datatime.date()
# current_time = datatime.time()
# new_year = datetime.date(2022, 12, 31)
await message.reply(outpoot) #отображение времени, пока не рабоатет
await message.reply(f'сегодня, {current_datatime}') #отображение времени, пока не рабоатет