Когда я запускаю этот код:
from telethon import TelegramClient
from telethon.tl.functions.messages import AddChatUserRequest
from telethon.tl.types import InputPhoneContact
from telethon.tl.functions.contacts import ImportContactsRequest
client = TelegramClient('session_name',
api_id,
api_hash)
client.start()
contact = InputPhoneContact(client_id=0, phone=guest_phone_number, first_name="custom_first_name", last_name="custom_last_name")
result = client(ImportContactsRequest([contact]))
client(AddChatUserRequest(user_id=result.users[0], fwd_limit=0, chat_id=group_id))
, появляется сообщение об ошибке:
AttributeError: 'coroutine' object has no attribute 'users'
Помогите, пожалуйста (