Update bdl.py
Browse files
bdl.py
CHANGED
@@ -15,7 +15,7 @@ api_hash = str(api_hash)
|
|
15 |
bot_token = str(btoken)
|
16 |
channel= int(chnl)
|
17 |
|
18 |
-
|
19 |
|
20 |
async def downdb():
|
21 |
client = TelegramClient(None, api_id, api_hash)
|
@@ -33,6 +33,7 @@ async def downdb():
|
|
33 |
return '2'
|
34 |
|
35 |
if p==True:
|
|
|
36 |
loop = asyncio.new_event_loop()
|
37 |
asyncio.set_event_loop(loop)
|
38 |
rp = loop.run_until_complete(downdb())
|
|
|
15 |
bot_token = str(btoken)
|
16 |
channel= int(chnl)
|
17 |
|
18 |
+
|
19 |
|
20 |
async def downdb():
|
21 |
client = TelegramClient(None, api_id, api_hash)
|
|
|
33 |
return '2'
|
34 |
|
35 |
if p==True:
|
36 |
+
print('database sync event')
|
37 |
loop = asyncio.new_event_loop()
|
38 |
asyncio.set_event_loop(loop)
|
39 |
rp = loop.run_until_complete(downdb())
|