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