From 1683e23232794a9f334bf35945b6abfd643e4012 Mon Sep 17 00:00:00 2001 From: Pavel_Duron Date: Fri, 4 Nov 2022 19:05:33 +1000 Subject: [PATCH] =?UTF-8?q?=D1=81=D0=BB=D1=83=D1=87=D0=B0=D0=B9=D0=BD?= =?UTF-8?q?=D1=8B=D0=B5=20=D1=87=D0=B8=D1=81=D0=BB=D0=B0=20add?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- bot.py | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/bot.py b/bot.py index e352a75..3bcec34 100644 --- a/bot.py +++ b/bot.py @@ -1,6 +1,7 @@ from cgitb import text import datetime import logging +from random import randint from aiogram import Bot, Dispatcher, executor, types from aiogram.types import ReplyKeyboardRemove, ReplyKeyboardMarkup, KeyboardButton @@ -33,6 +34,14 @@ async def send_time(message: types.Message): num=(str(raznitsa) + ' ' + days[p]) await message.reply(f'Сегодня {cd} \nВремя: {ct2} \nДо Нового Года осталось {num}') + + #####______________________ПИПИСА БОТ БУДЕТ ЗДЕСЬ__________________________________ + @dp.message_handler(commands=["DickUp"]) + async def dickup(message: types.Message): + numb = (f"Рандомное число - {randint(-7,10)}") + await dickup.send(numb) + +