API usage overhaul #27

Merged
profitroll merged 17 commits from overhaul into dev 2023-06-28 00:57:31 +03:00
2 changed files with 7 additions and 9 deletions
Showing only changes of commit 592b83377b - Show all commits

View File

@ -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,

View File

@ -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__)