API usage overhaul #27
5
main.py
5
main.py
@ -2,11 +2,10 @@ import contextlib
|
|||||||
import logging
|
import logging
|
||||||
from os import getpid
|
from os import getpid
|
||||||
|
|
||||||
from classes.pyroclient import PyroClient
|
|
||||||
from modules.scheduler import scheduler
|
|
||||||
|
|
||||||
from convopyro import Conversation
|
from convopyro import Conversation
|
||||||
|
|
||||||
|
from classes.pyroclient import PyroClient
|
||||||
|
from modules.scheduler import scheduler
|
||||||
|
|
||||||
logging.basicConfig(
|
logging.basicConfig(
|
||||||
level=logging.INFO,
|
level=logging.INFO,
|
||||||
|
@ -1,21 +1,20 @@
|
|||||||
from datetime import datetime
|
|
||||||
import logging
|
import logging
|
||||||
|
from datetime import datetime
|
||||||
from os import makedirs, path
|
from os import makedirs, path
|
||||||
from random import choice
|
from random import choice
|
||||||
from shutil import rmtree
|
from shutil import rmtree
|
||||||
from traceback import format_exc
|
from traceback import format_exc
|
||||||
from uuid import uuid4
|
from uuid import uuid4
|
||||||
from PIL import Image
|
|
||||||
import aiofiles
|
import aiofiles
|
||||||
from aiohttp import ClientSession
|
from aiohttp import ClientSession
|
||||||
|
from photosapi_client.errors import UnexpectedStatus
|
||||||
|
from PIL import Image
|
||||||
from pyrogram.client import Client
|
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 modules.database import col_sent, col_submitted
|
||||||
|
|
||||||
from photosapi_client.errors import UnexpectedStatus
|
|
||||||
|
|
||||||
logger = logging.getLogger(__name__)
|
logger = logging.getLogger(__name__)
|
||||||
|
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user