Update bdl.py
Browse files
bdl.py
CHANGED
@@ -2,6 +2,20 @@ from FastTelethonhelper import fast_download
|
|
2 |
from FastTelethonhelper import fast_upload
|
3 |
from telethon import TelegramClient, events,sync
|
4 |
import asyncio
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
5 |
|
6 |
async def downdb():
|
7 |
client = TelegramClient(None, api_id, api_hash)
|
|
|
2 |
from FastTelethonhelper import fast_upload
|
3 |
from telethon import TelegramClient, events,sync
|
4 |
import asyncio
|
5 |
+
import os
|
6 |
+
|
7 |
+
app_id = os.getenv("APP_ID")
|
8 |
+
api_hash = os.getenv("API_HASH")
|
9 |
+
btoken = os.getenv("BOT")
|
10 |
+
chnl = os.getenv("CHN")
|
11 |
+
|
12 |
+
|
13 |
+
api_id = int(app_id)
|
14 |
+
api_hash = str(api_hash)
|
15 |
+
bot_token = str(btoken)
|
16 |
+
channel= int(chnl)
|
17 |
+
|
18 |
+
print('dl sec')
|
19 |
|
20 |
async def downdb():
|
21 |
client = TelegramClient(None, api_id, api_hash)
|