| import asyncio | |
| import logging | |
| from pyrogram import idle | |
| from bot.client import templatebot | |
| logging.basicConfig( | |
| level=logging.INFO, | |
| format='%(asctime)s - %(name)s - %(levelname)s - %(message)s' | |
| ) | |
| async def main(): | |
| app = templatebot() | |
| await app.start() | |
| print("Bot started successfully!") | |
| await idle() | |
| if __name__ == "__main__": | |
| asyncio.run(main()) |