randydev commited on
Commit
9ccc8ce
·
verified ·
1 Parent(s): 401e7d5

Update main.py

Browse files
Files changed (1) hide show
  1. main.py +3 -2
main.py CHANGED
@@ -5,6 +5,7 @@ from pyrogram.types import *
5
  from RyuzakiLib import Tiktok
6
  from config import TIKTOK_WEB as tt, API_ID, API_HASH, BOT_TOKEN, HUGGING_TOKEN
7
  import hashlib
 
8
 
9
  try:
10
  from aiohttp import ClientSession as aiohttp_client
@@ -159,6 +160,6 @@ async def setup():
159
 
160
  if __main__ == "__main__":
161
  try:
162
- await setup()
163
  except Exception as e:
164
- logging.info(str(e))
 
5
  from RyuzakiLib import Tiktok
6
  from config import TIKTOK_WEB as tt, API_ID, API_HASH, BOT_TOKEN, HUGGING_TOKEN
7
  import hashlib
8
+ import asyncio
9
 
10
  try:
11
  from aiohttp import ClientSession as aiohttp_client
 
160
 
161
  if __main__ == "__main__":
162
  try:
163
+ asyncio.run(setup())
164
  except Exception as e:
165
+ logging.info(str(e))