RuntimeError: Task got Future <Future pending> attached to a different loop
问题 How to call async method which get event loop in main thread inside another async method in Quart? t.py from telethon import TelegramClient, functions, types client2 = TelegramClient(sn, api_id, api_hash).start() async def create_contact(): return await client2(functions.contacts.ImportContactsRequest([ types.InputPhoneContact(0, '8', 'first_name', 'last_name') ])) app.py from quart import Quart, websocket,render_template,request import t2 app = Quart(__name__) @app.route('/wa2tg') def wa2tg(