Spaces:
Build error
Build error
File size: 657 Bytes
e3bc29c |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 |
# (c) Asm Safone
# A Part of MegaDL-Bot <https://github.com/AsmSafone/MegaDL-Bot>
import os
import asyncio
from config import Config
from pyrogram import Client, idle
if __name__ == "__main__" :
if not os.path.isdir(Config.DOWNLOAD_LOCATION):
os.makedirs(Config.DOWNLOAD_LOCATION)
plugins = dict(root="megadl")
app = Client(
"MegaDL-Bot",
bot_token=Config.BOT_TOKEN,
api_id=Config.API_ID,
api_hash=Config.API_HASH,
plugins=plugins
)
app.start()
print('\n\n>>> MegaDL-Bot Started. Join @AsmSafone!')
idle()
app.stop()
print('\n\n>>> MegaDL-Bot Stopped. Join @AsmSafone!')
|