2023-02-08 17:13:41,286 (async_telebot.py:543 MainThread) ERROR - TeleBot: "Task <Task pending name='Task-53' coro=<AsyncTeleBot._run_middlewares_and_handlers() running at /Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/site-packages/telebot/async_telebot.py:516> cb=[gather.<locals>._done_callback() at /Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/asyncio/tasks.py:754]> got Future <Future pending cb=[_chain_future.<locals>._call_check_cancel() at /Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/asyncio/futures.py:387]> attached to a different loop"
Traceback (most recent call last):
File "/Users/lance/Python projects/AlbiChatManager/bot.py", line 19, in <module>
asyncio.run(bot_func.start())
File "/Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/asyncio/runners.py", line 190, in run
return runner.run(main)
^^^^^^^^^^^^^^^^
File "/Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/asyncio/runners.py", line 89, in run
raise ValueError("a coroutine was expected, got {!r}".format(coro))
ValueError: a coroutine was expected, got <pyrogram.client.Client object at 0x106736650>