forked from Pavel_Durov/python_bot
вывод времени
This commit is contained in:
parent
d0113757cd
commit
0f50512cd1
3
bot.py
3
bot.py
@ -17,10 +17,11 @@ dp = Dispatcher(bot)
|
|||||||
@dp.message_handler(commands=["time"])
|
@dp.message_handler(commands=["time"])
|
||||||
async def send_time(message: types.Message):
|
async def send_time(message: types.Message):
|
||||||
current_datatime = datetime.datetime.now()
|
current_datatime = datetime.datetime.now()
|
||||||
|
outpoot = 'сегодня', current_datatime
|
||||||
# current_data = datatime.date()
|
# current_data = datatime.date()
|
||||||
# current_time = datatime.time()
|
# current_time = datatime.time()
|
||||||
# new_year = datetime.date(2022, 12, 31)
|
# new_year = datetime.date(2022, 12, 31)
|
||||||
await message.reply(current_datatime) #отображение времени, пока не рабоатет
|
await message.reply(outpoot) #отображение времени, пока не рабоатет
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user