вывод времени

This commit is contained in:
Pavel_Duron 2022-11-03 16:31:59 +10:00
parent f8edff24e8
commit cffd4aae1b

2
bot.py
View File

@ -20,7 +20,7 @@ async def send_time(message: types.Message):
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До нового года осталось') #отображение времени, пока не рабоатет
await message.reply('Сегодня' + current_data + '\nВремя' + current_time + '\nДо нового года осталось' + new_year) #отображение времени, пока не рабоатет