INNER CODE UNIT · Python
Bot
TEAM-PYRO-BOTZ/PYRO-RENAME-BOT · bot.py:9
class Bot(Client):
def __init__(self):
super().__init__(
name="renamer",
api_id=Config.API_ID,
api_hash=Config.API_HASH,
bot_token=Config.BOT_TOKEN,
workers=min(32, os.cpu_count() + 4),
plugins={"root": "plugins"},
sleep_threshold=15,
max_concurrent_transmissions=Config.MAX_CONCURRENT_TRANSMISSIONS,
)
async def start(self):
await super().start()
me = await self.get_me()
self.mention = me.mention
self.username = me.username