From a49991d66f12ead44e072471f29fa2560f3a842a Mon Sep 17 00:00:00 2001 From: sergey Date: Tue, 11 Feb 2025 02:48:23 +0700 Subject: [PATCH] =?UTF-8?q?=D0=A4=D0=B8=D0=BA=D1=81=20=D0=B2=D1=80=D0=B5?= =?UTF-8?q?=D0=BC=D0=B5=D0=BD=D0=B8=20=D1=85=D0=BE=D1=81=D1=82=D0=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- BotLibrary/library/bots.py | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/BotLibrary/library/bots.py b/BotLibrary/library/bots.py index 44be19e..3a1a680 100644 --- a/BotLibrary/library/bots.py +++ b/BotLibrary/library/bots.py @@ -4,12 +4,11 @@ from aiogram import Dispatcher, Bot, F from aiogram.enums import ParseMode from aiogram.client.default import DefaultBotProperties -from aiogram.types import InlineKeyboardMarkup, ReplyKeyboardMarkup from aiogram.utils.keyboard import ReplyKeyboardBuilder, InlineKeyboardBuilder from apscheduler.schedulers.asyncio import AsyncIOScheduler -from BotLibrary.timers.time import * -from ..configs import bot_token, BotVariables +from ..timers import * +from ..configs import bot_token, BotVariables, TimeVariable # Настройка экспорта из этого модуля __all__ = ("dp", "rkb", "ikb", "bot", "scheduler", @@ -22,7 +21,7 @@ rkb = ReplyKeyboardBuilder() ikb = InlineKeyboardBuilder() # Настройка параметров диспатчера -dp["started_at"] = host_time +dp["started_at"] = get_choice_time(TimeVariable.choice_utc_krsk) dp["started_at_msk"] = get_choice_time(TimeVariable.choice_utc_msk) dp["is_active"] = True # Флаг активности бота dp["logs"] = []