Оптимизация кода, импортов, зависимостей
This commit is contained in:
parent
ca542b749c
commit
1db753d138
10
main.py
10
main.py
|
@ -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
2
requirements.txt
Normal file
|
@ -0,0 +1,2 @@
|
|||
telethon
|
||||
tqdm
|
Loading…
Reference in New Issue
Block a user