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

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

2
requirements.txt Normal file
View File

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