Оптимизация кода, импортов, зависимостей

This commit is contained in:
Григорич 2022-10-22 22:49:36 +03:00
parent ca542b749c
commit 1db753d138
2 changed files with 5 additions and 7 deletions

10
main.py
View File

@ -1,18 +1,13 @@
import encodings
from tqdm import tqdm from tqdm import tqdm
import telethon
from telethon import TelegramClient, sync, functions, errors, types from telethon import TelegramClient, sync, functions, errors, types
from telethon.extensions import markdown
import asyncio import asyncio
import time import time
from config import * from config import *
import markdown2
loop = asyncio.get_event_loop() loop = asyncio.get_event_loop()
class GropAlbum: class GropAlbum:
def __init__(self, albumId, media, mess): def __init__(self, albumId, media, mess):
self.albumId = albumId self.albumId = albumId
@ -34,6 +29,7 @@ class GropAlbum:
else: else:
return 'main', self.medias, self.mess return 'main', self.medias, self.mess
class ForwardAlbum: class ForwardAlbum:
def __init__(self, albumId): def __init__(self, albumId):
self.albumId = albumId self.albumId = albumId

2
requirements.txt Normal file
View File

@ -0,0 +1,2 @@
telethon
tqdm