Download main.py from dycd/1: direct link, hf CLI and curl.
- Browser
- Download file 326 Bytes
-
https://huggingface.co/spaces/dycd/1/resolve/main/main.py
- Command line
-
hf download hf://spaces/dycd/1/main.py
-
curl -L -o main.py https://huggingface.co/spaces/dycd/1/resolve/main/main.py
326 Bytes
| import asyncio | |
| import os | |
| from aiogram import Bot, Dispatcher | |
| from config import BASE_DIR, BOT_TOKEN | |
| from handlers import register_handlers | |
| dp = Dispatcher() | |
| register_handlers(dp) | |
| async def main() -> None: | |
| bot = Bot(token=BOT_TOKEN) | |
| await dp.start_polling(bot) | |
| if __name__ == "__main__": | |
| asyncio.run(main()) | |