mirror of
https://github.com/yasirarism/MissKatyPyro.git
synced 2025-12-29 17:44:50 +00:00
Try fix nightmode
This commit is contained in:
parent
bbbff5c2ba
commit
6c24b7713a
1 changed files with 3 additions and 0 deletions
|
|
@ -18,6 +18,7 @@ from pyrogram.raw.all import layer
|
|||
from pyrogram.types import InlineKeyboardButton, InlineKeyboardMarkup
|
||||
|
||||
from database.users_chats_db import db
|
||||
from database.nightmode_db import scheduler
|
||||
from misskaty import (
|
||||
BOT_NAME,
|
||||
BOT_USERNAME,
|
||||
|
|
@ -71,6 +72,8 @@ async def start_bot():
|
|||
)
|
||||
except Exception as e:
|
||||
LOGGER.error(str(e))
|
||||
if bool(scheduler.get_jobs()):
|
||||
scheduler.start()
|
||||
if os.path.exists("restart.pickle"):
|
||||
with open('restart.pickle', 'rb') as status:
|
||||
chat_id, message_id = pickle.load(status)
|
||||
|
|
|
|||
Loading…
Reference in a new issue