diff --git a/main.py b/main.py index 51629d7..2c25b5e 100644 --- a/main.py +++ b/main.py @@ -2,11 +2,10 @@ import contextlib import logging from os import getpid -from classes.pyroclient import PyroClient -from modules.scheduler import scheduler - from convopyro import Conversation +from classes.pyroclient import PyroClient +from modules.scheduler import scheduler logging.basicConfig( level=logging.INFO, diff --git a/modules/sender.py b/modules/sender.py index cdab5b7..3456446 100644 --- a/modules/sender.py +++ b/modules/sender.py @@ -1,21 +1,20 @@ -from datetime import datetime import logging +from datetime import datetime from os import makedirs, path from random import choice from shutil import rmtree from traceback import format_exc from uuid import uuid4 -from PIL import Image + import aiofiles from aiohttp import ClientSession - +from photosapi_client.errors import UnexpectedStatus +from PIL import Image from pyrogram.client import Client -from modules.api_client import authorize, photo_patch, photo_find, client +from modules.api_client import authorize, client, photo_find, photo_patch from modules.database import col_sent, col_submitted -from photosapi_client.errors import UnexpectedStatus - logger = logging.getLogger(__name__)