forked from Pavel_Durov/python_bot
вывод времени
This commit is contained in:
parent
e5f56c24c3
commit
c6042b33fd
4
bot.py
4
bot.py
@ -16,11 +16,11 @@ 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_datatime) #отображение времени, пока не рабоатет
|
||||
await message.reply('Сегодня', current_datatime) #отображение времени, пока не рабоатет
|
||||
current_datatime = datetime.datetime.now()
|
||||
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user