Spaces:
Paused
Paused
Download bot.py from imseldrith/Adv_bot: direct link, hf CLI and curl.
- Browser
- Download file 759 Bytes
-
https://huggingface.co/spaces/imseldrith/Adv_bot/resolve/main/bot.py
- Command line
-
hf download hf://spaces/imseldrith/Adv_bot/bot.py
-
curl -L -o bot.py https://huggingface.co/spaces/imseldrith/Adv_bot/resolve/main/bot.py
759 Bytes
| #!/usr/bin/env python3 | |
| # -*- coding: utf-8 -*- | |
| # (c) Shrimadhav U K | Modifieded By : @DC4_WARRIOR | |
| import os | |
| import logging | |
| from config import Config | |
| from pyrogram import Client as Clinton | |
| logging.basicConfig(level=logging.DEBUG, format='%(asctime)s - %(name)s - %(levelname)s - %(message)s') | |
| logging.getLogger("pyrogram").setLevel(logging.WARNING) | |
| logger = logging.getLogger(__name__) | |
| if __name__ == "__main__" : | |
| # create download directory, if not exist | |
| if not os.path.isdir(Config.DOWNLOAD_LOCATION): | |
| os.makedirs(Config.DOWNLOAD_LOCATION) | |
| plugins = dict(root="plugins") | |
| Warrior = Clinton("@BOT_X_BOT", | |
| bot_token=Config.BOT_TOKEN, | |
| api_id=Config.API_ID, | |
| api_hash=Config.API_HASH, | |
| plugins=plugins) | |
| Warrior.run() | |