MCPcopy Create free account
hub / github.com/TechifyBots/Rename-Bot / start_services

Function start_services

bot.py:98–111  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

96
97def main():
98 async def start_services():
99 if Config.STRING_SESSION:
100 await asyncio.gather(app.start(), tb.start())
101 else:
102 await asyncio.gather(tb.start())
103
104 # Idle mode start karo
105 await idle()
106
107 # Bot stop karo
108 if Config.STRING_SESSION:
109 await asyncio.gather(app.stop(), tb.stop())
110 else:
111 await asyncio.gather(tb.stop())
112
113 loop = asyncio.get_event_loop()
114 try:

Callers 1

mainFunction · 0.85

Calls 2

startMethod · 0.80
stopMethod · 0.80

Tested by

no test coverage detected