sycgram/main.py
2022-04-07 11:57:09 +08:00

20 lines
363 B
Python

from pyrogram.methods.utilities.idle import idle
from core import app
from tools.initializer import init_logger
from tools.sessions import session
async def main():
try:
init_logger()
await app.start()
await idle()
finally:
await session.close()
await app.stop()
if __name__ == '__main__':
app.run(main())