Config cleanup
This commit is contained in:
@@ -11,9 +11,11 @@ from typing import Dict, List, Tuple, Union
|
||||
|
||||
import aiofiles
|
||||
from aiohttp import ClientSession
|
||||
from apscheduler.schedulers.asyncio import AsyncIOScheduler
|
||||
from bson import ObjectId
|
||||
from libbot import json_write
|
||||
from libbot.i18n.sync import _
|
||||
from libbot.pyrogram.classes import PyroClient
|
||||
from photosapi_client.errors import UnexpectedStatus
|
||||
from pyrogram.errors import bad_request_400
|
||||
from pyrogram.types import Message, User
|
||||
@@ -44,16 +46,9 @@ from modules.sender import send_content
|
||||
logger = logging.getLogger(__name__)
|
||||
|
||||
|
||||
from datetime import datetime
|
||||
from typing import List, Union
|
||||
|
||||
from apscheduler.schedulers.asyncio import AsyncIOScheduler
|
||||
from libbot.pyrogram.classes import PyroClient
|
||||
|
||||
|
||||
class PyroClient(PyroClient):
|
||||
def __init__(self, scheduler: AsyncIOScheduler):
|
||||
super().__init__(scheduler=scheduler)
|
||||
super().__init__(locales_root=Path("locale"), scheduler=scheduler)
|
||||
|
||||
self.version: float = 0.2
|
||||
|
||||
|
Reference in New Issue
Block a user