chat = client.create_group("Deal #2", [BOT])
return client.get_chat(chat['id'])
в синхронной функции пригодится
An asyncio.Future, a coroutine or an awaitable is required
Traceback (most recent call last): File "C:\Users\danch\PycharmProjects\userbot\main.py", line 20, in <module> print(get_link()) File "C:\Users\danch\PycharmProjects\userbot\main.py", line 16, in get_link chat = loop.run_until_complete(client.create_group("Deal #2", [BOT])) File "C:\Users\danch\AppData\Local\Programs\Python\Python39\lib\asyncio\base_events.py", line 621, in run_until_complete future = tasks.ensure_future(future, loop=self) File "C:\Users\danch\AppData\Local\Programs\Python\Python39\lib\asyncio\tasks.py", line 679, in ensure_future raise TypeError('An asyncio.Future, a coroutine or an awaitable is ' TypeError: An asyncio.Future, a coroutine or an awaitable is required
неа
Обсуждают сегодня